Skip to content

BASEDMYPY_TYPE_CHECKING variable #524

@DetachHead

Description

@DetachHead

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions