Skip to content

Instantly share code, notes, and snippets.

@ian8i
Last active April 21, 2017 23:47
Show Gist options
  • Save ian8i/bc9c80af9c44d6ecd885b48f1db15301 to your computer and use it in GitHub Desktop.
Save ian8i/bc9c80af9c44d6ecd885b48f1db15301 to your computer and use it in GitHub Desktop.
PyCharm, Python 3.6.1, no type hint warnings?
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