Skip to content

Commit f6b914e

Browse files
fix: add Member import for typehinting (#2596)
* 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>
1 parent c430fbb commit f6b914e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

discord/bot.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,16 @@
3434
import sys
3535
import traceback
3636
from abc import ABC, abstractmethod
37-
from typing import Any, Callable, Coroutine, Generator, Literal, Mapping, TypeVar
37+
from typing import (
38+
TYPE_CHECKING,
39+
Any,
40+
Callable,
41+
Coroutine,
42+
Generator,
43+
Literal,
44+
Mapping,
45+
TypeVar,
46+
)
3847

3948
from .client import Client
4049
from .cog import CogMixin
@@ -56,6 +65,9 @@
5665
from .user import User
5766
from .utils import MISSING, async_all, find, get
5867

68+
if TYPE_CHECKING:
69+
from .member import Member
70+
5971
CoroFunc = Callable[..., Coroutine[Any, Any, Any]]
6072
CFT = TypeVar("CFT", bound=CoroFunc)
6173

0 commit comments

Comments
 (0)