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

Ruff ignores nested string annotations #3655

Closed
charliermarsh opened this issue Mar 21, 2023 · 1 comment · Fixed by #3724
Closed

Ruff ignores nested string annotations #3655

charliermarsh opened this issue Mar 21, 2023 · 1 comment · Fixed by #3724
Labels
bug Something isn't working

Comments

@charliermarsh
Copy link
Member

Mypy respects the use of Path here:

from pathlib import Path

x: """list['Path']""" = []

We consider it an unused import.

@charliermarsh charliermarsh added the bug Something isn't working label Mar 21, 2023
@charliermarsh
Copy link
Member Author

There's no reason (AFAIK) to do this as a user, but it is valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant