Skip to content

Commit d697a6b

Browse files
Fix if TYPE_CHECKING check in hooks.py (#455)
1 parent 980b6a3 commit d697a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tanjun/hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
from . import abc as tanjun
4343
from . import errors
4444

45-
if typing.TypeVar:
45+
if typing.TYPE_CHECKING:
4646
_CommandT = typing.TypeVar("_CommandT", bound=tanjun.ExecutableCommand[typing.Any])
4747
_ErrorHookSigT = typing.TypeVar("_ErrorHookSigT", bound=tanjun.ErrorHookSig)
4848
_HookSigT = typing.TypeVar("_HookSigT", bound=tanjun.HookSig)

0 commit comments

Comments
 (0)