Skip to content

Move it under typing.TYPE_CHECKING if an import is used only for typing #305

Open
@hakancelikdev

Description

For example:

source.py

import x

variable: x = value

refactor.py

import typing

if typing.TYPE_CHECKING:
    import x

variable: x = value

Metadata

Assignees

No one assigned

    Labels

    changelogChanges should be written to the changelog file.documentationImprovements or additions to documentationenhancementNew feature or requesttest

    Projects

    • Status

      📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions