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
try: # Python 3 from urllib.request import urlopen except ImportError: # Python 2 from urllib2 import urlopen
results in file.py:X: error: Name 'urlopen' already defined
file.py:X: error: Name 'urlopen' already defined
The text was updated successfully, but these errors were encountered:
This looks like a special case of #1153. Currently you can add a # type: ignore on the line which mypy complains about.
# type: ignore
Sorry, something went wrong.
Closing as a dupe. Any follow-up discussion can go to #1153.
No branches or pull requests
results in
file.py:X: error: Name 'urlopen' already defined
The text was updated successfully, but these errors were encountered: