Skip to content

give an option to skip imports for type checking? #6

@likewei92

Description

@likewei92

Sometimes imports are used only for type checking. Python recommends placing these imports under a if TYPE_CHECKING condition: https://docs.python.org/3/library/typing.html#typing.TYPE_CHECKING, which can be used to reduce the cost of imports during runtime or to break circular dependencies. Is it possible to have an option to exclude these imports?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions