Skip to content

auto-remove things from TYPE_CHECKING blocks #849

@asottile

Description

@asottile

for instance in --py38-plus:

-if TYPE_CHECKING:
-    from typing import Protocol
-else:
-    Protocol = object
+from typing import Protocol

that's the most complex mode -- some of them are simpler (just imports)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions