Skip to content

Commit

Permalink
fix: add Member import for typehinting (#2596)
Browse files Browse the repository at this point in the history
* fix: add Member import

Signed-off-by: plun1331 <[email protected]>

* style(pre-commit): auto fixes from pre-commit.com hooks

---------

Signed-off-by: plun1331 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
plun1331 and pre-commit-ci[bot] authored Oct 4, 2024
1 parent c430fbb commit f6b914e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@
import sys
import traceback
from abc import ABC, abstractmethod
from typing import Any, Callable, Coroutine, Generator, Literal, Mapping, TypeVar
from typing import (
TYPE_CHECKING,
Any,
Callable,
Coroutine,
Generator,
Literal,
Mapping,
TypeVar,
)

from .client import Client
from .cog import CogMixin
Expand All @@ -56,6 +65,9 @@
from .user import User
from .utils import MISSING, async_all, find, get

if TYPE_CHECKING:
from .member import Member

CoroFunc = Callable[..., Coroutine[Any, Any, Any]]
CFT = TypeVar("CFT", bound=CoroFunc)

Expand Down

0 comments on commit f6b914e

Please sign in to comment.