Skip to content

Instantly share code, notes, and snippets.

@tim6her
Last active March 20, 2017 19:03
Show Gist options
  • Save tim6her/6ba0bf48feb337e69bd411afc41f7380 to your computer and use it in GitHub Desktop.
Save tim6her/6ba0bf48feb337e69bd411afc41f7380 to your computer and use it in GitHub Desktop.
output of $ mypy hdx/configuration.py --ignore-missing-import
# Commit db7a681
hdx/__init__.py:2: error: Need type annotation for variable
hdx/__init__.py:3: error: Need type annotation for variable
hdx/utilities/path.py:23: error: "module" has no attribute "getabsfile"
hdx/utilities/dictandlist.py:7: error: String argument 1 'T' to TypeVar(...) does not match variable name 'DictUpperBound'
hdx/utilities/dictandlist.py:7: error: "object" not callable
hdx/utilities/dictandlist.py:10: error: Invalid type "hdx.utilities.dictandlist.DictUpperBound"
hdx/utilities/dictandlist.py:22: error: Need type annotation for variable
hdx/utilities/dictandlist.py:55: error: Invalid type "hdx.utilities.dictandlist.DictUpperBound"
hdx/utilities/dictandlist.py:65: error: Need type annotation for variable
hdx/utilities/dictandlist.py:66: error: Need type annotation for variable
hdx/utilities/dictandlist.py:71: error: Invalid type "hdx.utilities.dictandlist.DictUpperBound"
hdx/utilities/dictandlist.py:83: error: object has no attribute "keys"
hdx/utilities/dictandlist.py:84: error: object has no attribute "keys"
hdx/utilities/dictandlist.py:86: error: Value of type object is not indexable
hdx/utilities/dictandlist.py:87: error: Value of type object is not indexable
hdx/utilities/dictandlist.py:88: error: Value of type object is not indexable
hdx/utilities/dictandlist.py:92: error: Invalid type "hdx.utilities.dictandlist.DictUpperBound"
hdx/utilities/dictandlist.py:104: error: object has no attribute "get"
hdx/utilities/dictandlist.py:106: error: Unsupported target for indexed assignment
hdx/utilities/dictandlist.py:121: error: Need type annotation for variable
hdx/utilities/dictandlist.py:170: error: Need type annotation for variable
hdx/configuration.py:204: error: Cannot instantiate abstract class 'Configuration' with abstract attributes '__delitem__', '__getitem__', '__iter__', '__len__' and '__setitem__'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment