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

False F401 with annotations and no_type_check. #14762

Closed
coady opened this issue Dec 4, 2024 · 1 comment
Closed

False F401 with annotations and no_type_check. #14762

coady opened this issue Dec 4, 2024 · 1 comment

Comments

@coady
Copy link

coady commented Dec 4, 2024

Using v0.8.1.

from collections.abc import Iterable
from typing import no_type_check

@no_type_check
def func(it: Iterable):
    ...

outputs

.py:1:29: F401 [*] `collections.abc.Iterable` imported but unused
  |
1 | from collections.abc import Iterable
@charliermarsh
Copy link
Member

This was reverted in #14726.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants