Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add Member import for typehinting #2596

Merged
merged 2 commits into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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