You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jeffs@jeffs-desktop:/home/jeffs/python/nbmdt (development) * $ mypy nbmdt.py
application.py:9: error: No library stub file for module 'termcolor'
application.py:9: note: (Stub files are from https://github.com/python/typeshed)
application.py:12: error: No library stub file for module 'dns'
network.py:11: error: No library stub file for module 'termcolor'
physical.py:285: error: No library stub file for module 'lxml'
constants.py:149: error: Name 'application' is not defined
constants.py:150: error: Name 'presentation' is not defined
constants.py:151: error: Name 'session' is not defined
constants.py:152: error: Name 'transport' is not defined
constants.py:153: error: Name 'network' is not defined
constants.py:153: error: Incompatible types in assignment (expression has type "Type[Dict[Any, Any]]", variable has type "Dict[Any, Any]")
constants.py:154: error: Name 'datalink' is not defined
constants.py:155: error: Name 'interface' is not defined
transport.py:23: error: "Transport" has no attribute "layer"
transport.py:46: error: Invalid type "connections"
transport.py:57: error: "Transport" has no attribute "_connections"; maybe "connections", "add_connection", or "TcpConnection"?
transport.py:61: error: "Transport" has no attribute "_connections"; maybe "connections", "add_connection", or "TcpConnection"?
utilities.py:55: error: Invalid type "constants.type_network_dict"
utilities.py:58: error: Name 'type_physical_dict' is not defined
utilities.py:80: error: Need type annotation for variable
utilities.py:94: error: Name 'os' is not defined
utilities.py:118: error: Name 'typing' is not defined
utilities.py:118: error: Name 'application' is not defined
utilities.py:119: error: Name 'presentation' is not defined
utilities.py:120: error: Name 'session' is not defined
utilities.py:121: error: Name 'transport' is not defined
utilities.py:122: error: Name 'network' is not defined
utilities.py:124: error: Name 'datalink' is not defined
utilities.py:125: error: Name 'physical' is not defined
utilities.py:237: error: Name 'sys' is not defined
utilities.py:240: error: Name 'constants' is not defined
utilities.py:241: error: Name 'sys' is not defined
utilities.py:245: error: Name 'sys' is not defined
utilities.py:248: error: Name 'constants' is not defined
utilities.py:249: error: Name 'sys' is not defined
utilities.py:252: error: Name 'constants' is not defined
utilities.py:254: error: Name 'constants' is not defined
utilities.py:255: error: Name 'sys' is not defined
utilities.py:257: error: Name 'constants' is not defined
interface.py:43: error: The erased type of self 'builtins.list[Any]' is not a supertype of its class 'interface.Interface'
interface.py:81: error: Name 'IP_COMMAND' already defined
interface.py:83: error: Name 'IP_COMMAND' already defined
physical.py:19: error: The return type of "__init__" must be None
physical.py:110: error: No overload variant of "sub" matches argument types [builtins.str, builtins.str*]
physical.py:244: error: Method must have at least one argument
physical.py:316: error: Invalid type "xml.etree.ElementTree"
physical.py:317: error: ET? has no attribute "tag"
physical.py:318: error: ET? has no attribute "__iter__"
physical.py:321: error: ET? has no attribute "__iter__"
physical.py:322: error: ET? has no attribute "findall"
physical.py:325: error: Need type annotation for variable
physical.py:326: error: ET? has no attribute "iter"
physical.py:331: error: Need type annotation for variable
application.py:40: error: Invalid type "cls"
application.py:51: error: Incompatible types in assignment (expression has type "List[str]", variable has type "str")
application.py:64: error: Incompatible types in assignment (expression has type "List[str]", variable has type "str")
configuration.py:44: error: Value of type "stat_result" is not indexable
configuration.py:50: error: Incompatible return value type (got "bool", expected "str")
configuration.py:59: error: The return type of "__init__" must be None
configuration.py:169: error: Name 'ping' is not defined
network.py:1: error: Cannot determine type of 'ipv4_address'
network.py:77: error: "IPv4Address" has no attribute "super"
network.py:117: error: Cannot determine type of 'ipv4_address'
network.py:139: error: Cannot determine type of 'ipv4_address'
network.py:142: error: Cannot determine type of 'ipv4_address'
network.py:164: error: Cannot determine type of 'ipv4_address'
network.py:165: error: Argument 1 to "inet_ntoa" has incompatible type "Union[str, bytes, None]"; expected "bytes"
network.py:167: error: Cannot determine type of 'ipv4_address'
network.py:167: error: Argument 1 to "inet_aton" has incompatible type "Union[str, bytes, None]"; expected "str"
network.py:168: error: Argument 1 to "gethostbyaddr" has incompatible type "Union[str, bytes, None]"; expected "str"
network.py:203: error: Cannot determine type of 'ipv4_address'
network.py:208: error: Cannot determine type of 'ipv4_address'
network.py:768: error: Cannot determine type of 'ipv4_address'
network.py:769: error: Cannot determine type of 'ipv4_address'
network.py:771: error: Cannot determine type of 'ipv4_address'
network.py:772: error: Cannot determine type of 'ipv4_address'
nbmdt.py:1: error: Name 'parsed_options' is not defined
nbmdt.py:91: error: Incompatible types in assignment (expression has type "object", variable has type "SystemDescription")
nbmdt.py:213: error: Name 'parsed_options' is not defined
nbmdt.py:217: error: Name 'parsed_options' is not defined
nbmdt.py:224: error: Name 'parsed_options' is not defined
nbmdt.py:226: error: Name 'parsed_options' is not defined
nbmdt.py:228: error: Name 'parsed_options' is not defined
nbmdt.py:230: error: Name 'parsed_options' is not defined
nbmdt.py:232: error: Name 'parsed_options' is not defined
nbmdt.py:262: error: Name 'parsed_options' is not defined
jeffs@jeffs-desktop:/home/jeffs/python/nbmdt (development) * $
The text was updated successfully, but these errors were encountered:
As of 13-Jan-2019 22:51 PDT, mypy is complaining:
The text was updated successfully, but these errors were encountered: