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

PLE0605 false positive when specifying the generic in list or tuple constructor #6226

Closed
DetachHead opened this issue Aug 1, 2023 · 0 comments · Fixed by #6247
Closed

PLE0605 false positive when specifying the generic in list or tuple constructor #6226

DetachHead opened this issue Aug 1, 2023 · 0 comments · Fixed by #6247
Assignees
Labels
accepted Ready for implementation bug Something isn't working

Comments

@DetachHead
Copy link

__all__ = list[str]()
PLE0605 Invalid format for `__all__`, must be `tuple` or `list`
@charliermarsh charliermarsh added bug Something isn't working accepted Ready for implementation labels Aug 1, 2023
@charliermarsh charliermarsh self-assigned this Aug 1, 2023
charliermarsh added a commit that referenced this issue Aug 1, 2023
## Summary

Allows, e.g., `__all__ = list[str]()`.

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

Successfully merging a pull request may close this issue.

2 participants