Last active
April 21, 2017 23:47
-
-
Save ian8i/bc9c80af9c44d6ecd885b48f1db15301 to your computer and use it in GitHub Desktop.
PyCharm, Python 3.6.1, no type hint warnings?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Dict | |
a: Dict[int, int] = dict() | |
a[1] = 1 # This is fine | |
a['hello'] = 'world' # This is not, but pycharm offers no warnings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment