Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reportDuplicateImport false negative when imports are not top level or in conditional blocks #117

Open
DetachHead opened this issue Feb 25, 2024 · 0 comments · May be fixed by #182
Open
Labels
type checking / linting issues relating to existing diagnostic rules or proposals for new diagnostic rules

Comments

@DetachHead
Copy link
Owner

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from typing import cast
    from typing import cast # no error
from typing import cast, TYPE_CHECKING

if TYPE_CHECKING:
    from typing import cast # no error
def foo():
    from typing import cast
    from typing import cast # no error
@DetachHead DetachHead linked a pull request Mar 21, 2024 that will close this issue
@DetachHead DetachHead added the type checking / linting issues relating to existing diagnostic rules or proposals for new diagnostic rules label Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type checking / linting issues relating to existing diagnostic rules or proposals for new diagnostic rules
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant