We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
typing.List
As shown in #2273 and #2321, using the List type in a library can be unnecessarily restrictive as it's an invariant type: https://mypy.readthedocs.io/en/stable/generics.html#variance-of-generic-types. This issue is about finding other cases where users can pass parameters typed as List or Tuple and fix them to use Sequence instead.
List
Tuple
Sequence
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As shown in #2273 and #2321, using the
List
type in a library can be unnecessarily restrictive as it's an invariant type: https://mypy.readthedocs.io/en/stable/generics.html#variance-of-generic-types. This issue is about finding other cases where users can pass parameters typed asList
orTuple
and fix them to useSequence
instead.The text was updated successfully, but these errors were encountered: