Skip to content

Commit 8071e4e

Browse files
authored
fix: make ClientT covariant (#1708)
1 parent cf395d1 commit 8071e4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/client/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def has_client_feature(feature: str) -> bool:
244244
if TYPE_CHECKING:
245245
from interactions import Client
246246

247-
ClientT = typing_extensions.TypeVar("ClientT", bound=Client, default=Client)
247+
ClientT = typing_extensions.TypeVar("ClientT", bound=Client, default=Client, covariant=True)
248248
else:
249249
ClientT = TypeVar("ClientT")
250250

0 commit comments

Comments
 (0)