We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
a = [1] # type: List[int]
do not give any warning, but
a = (1,) # type: Tuple[int]
gives
list.py:1: error: Name 'Tuple' is not defined
The text was updated successfully, but these errors were encountered:
Does the latter work if you do a = (1,)?
a = (1,)
Sorry, something went wrong.
@kirbyfan64 ho, typo from my part, that's true, I'm editing my post; but the warning is still there.
This is a duplicate of bug #999. For your program to be correct, both List and Tuple ought to be imported from the typing module.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
do not give any warning, but
gives
The text was updated successfully, but these errors were encountered: