-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
Description
it would be nice to have a variable like TYPE_CHECKING
that's only true in basedmypy, so we can conditionally support based features while still supporting regular type checkers:
from basedtyping import BASEDMYPY_TYPE_CHECKING
if IS_BASEDMYPY:
foo: Foo & Bar
else:
foo: object
related: #37
smheidrich and buster-blue