mypy tests.py
BuildLibs\SpoilerLog.py:91: error: "None" has no attribute "write" [attr-defined]
BuildLibs\SpoilerLog.py:144: error: Incompatible types in assignment (expression has type "Path", variable has type "str") [assignment]
BuildLibs\SpoilerLog.py:147: error: "None" has no attribute "write" [attr-defined]
GUI\__init__.py:6: error: Cannot find implementation or library stub for module named "idlelib.tooltip" [import]
GUI\__init__.py:6: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
GUI\__init__.py:37: error: Incompatible types in assignment (expression has type "Label", variable has type "str") [assignment]
GUI\__init__.py:37: error: "GUIBase" has no attribute "win" [attr-defined]
GUI\__init__.py:37: error: "GUIBase" has no attribute "font" [attr-defined]
GUI\__init__.py:38: error: "str" has no attribute "grid" [attr-defined]
GUI\__init__.py:40: error: "GUIBase" has no attribute "win" [attr-defined]
GUI\__init__.py:42: error: "GUIBase" has no attribute "win" [attr-defined]
GUI\__init__.py:42: error: "GUIBase" has no attribute "font" [attr-defined]
BuildGames\__init__.py:131: error: Incompatible types in assignment (expression has type "mmap", variable has type "TextIOWrapper") [assignment]
BuildGames\__init__.py:132: error: Argument 1 to "crc32" has incompatible type "TextIOWrapper"; expected "Union[bytes, Union[bytearray, memoryview, array[Any], mmap, _CData, PickleBuffer]]" [arg-type]
BuildGames\__init__.py:133: error: Incompatible types in assignment (expression has type "Optional[GameInfo]", variable has type "GameInfo") [assignment]
BuildGames\__init__.py:138: error: Argument 1 to "md5" has incompatible type "TextIOWrapper"; expected "Union[bytes, Union[bytearray, memoryview, array[Any], mmap, _CData, PickleBuffer]]" [arg-type]
BuildGames\__init__.py:140: error: Argument 1 to "sha1" has incompatible type "TextIOWrapper"; expected "Union[bytes, Union[bytearray, memoryview, array[Any], mmap, _CData, PickleBuffer]]" [arg-type]
BuildGames\__init__.py:143: error: Argument 1 to "md5" has incompatible type "TextIOWrapper"; expected "Union[bytes, Union[bytearray, memoryview, array[Any], mmap, _CData, PickleBuffer]]" [arg-type]
BuildGames\__init__.py:144: error: Argument 1 to "sha1" has incompatible type "TextIOWrapper"; expected "Union[bytes, Union[bytearray, memoryview, array[Any], mmap, _CData, PickleBuffer]]" [arg-type]
BuildGames\__init__.py:157: error: Incompatible types in assignment (expression has type "Optional[GameSettings]", variable has type "GameSettings") [assignment]
BuildGames\__init__.py:165: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
BuildGames\__init__.py:167: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
BuildGames\__init__.py:168: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
BuildGames\__init__.py:172: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
BuildLibs\confile.py:12: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
BuildLibs\confile.py:13: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
BuildLibs\confile.py:14: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
BuildLibs\buildmapbase.py:124: error: Incompatible default for argument "data" (default has type "None", argument has type "bytearray") [assignment]
BuildLibs\buildmapbase.py:124: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
BuildLibs\buildmapbase.py:124: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
BuildLibs\buildmapbase.py:151: error: "MapFileBase" has no attribute "HEADER_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:151: error: "MapFileBase" has no attribute "headerPacker" [attr-defined]
BuildLibs\buildmapbase.py:152: error: "MapFileBase" has no attribute "SECTOR_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:152: error: "MapFileBase" has no attribute "sectorPacker"; maybe "sectorCache"? [attr-defined]
BuildLibs\buildmapbase.py:153: error: "MapFileBase" has no attribute "WALL_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:153: error: "MapFileBase" has no attribute "wallPacker" [attr-defined]
BuildLibs\buildmapbase.py:154: error: "MapFileBase" has no attribute "SPRITE_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:154: error: "MapFileBase" has no attribute "spritePacker" [attr-defined]
BuildLibs\buildmapbase.py:156: error: Need type annotation for "sectors" (hint: "sectors: List[<type>] = ...") [var-annotated]
BuildLibs\buildmapbase.py:157: error: Need type annotation for "walls" (hint: "walls: List[<type>] = ...") [var-annotated]
BuildLibs\buildmapbase.py:158: error: Need type annotation for "items" (hint: "items: List[<type>] = ...") [var-annotated]
BuildLibs\buildmapbase.py:159: error: Need type annotation for "enemies" (hint: "enemies: List[<type>] = ...") [var-annotated]
BuildLibs\buildmapbase.py:160: error: Need type annotation for "triggers" (hint: "triggers: List[<type>] = ...") [var-annotated]
BuildLibs\buildmapbase.py:161: error: Need type annotation for "other_sprites" (hint: "other_sprites: List[<type>] = ...") [var-annotated]
BuildLibs\buildmapbase.py:162: error: Need type annotation for "sectorCache" (hint: "sectorCache: Dict[<type>, <type>] = ...") [var-annotated]
BuildLibs\buildmapbase.py:335: error: Argument 2 to "SwapSprites" of "MapFileBase" has incompatible type "int"; expected "Sprite" [arg-type]
BuildLibs\buildmapbase.py:389: error: "MapFileBase" has no attribute "SPRITE_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:428: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
BuildLibs\buildmapbase.py:429: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
BuildLibs\buildmapbase.py:515: error: "MapFileBase" has no attribute "SECTOR_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:518: error: "MapFileBase" has no attribute "mapRevision" [attr-defined]
BuildLibs\buildmapbase.py:518: error: "MapFileBase" has no attribute "SECTOR_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:520: error: "MapFileBase" has no attribute "sectorPacker"; maybe "sectorCache"? [attr-defined]
BuildLibs\buildmapbase.py:521: error: "MapFileBase" has no attribute "SECTOR_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:523: error: "MapFileBase" has no attribute "SECTOR_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:524: error: "Sector" has no attribute "extraData" [attr-defined]
BuildLibs\buildmapbase.py:529: error: "MapFileBase" has no attribute "WALL_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:532: error: "MapFileBase" has no attribute "mapRevision" [attr-defined]
BuildLibs\buildmapbase.py:532: error: "MapFileBase" has no attribute "SECTOR_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:534: error: "MapFileBase" has no attribute "wallPacker" [attr-defined]
BuildLibs\buildmapbase.py:535: error: "MapFileBase" has no attribute "WALL_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:537: error: "MapFileBase" has no attribute "WALL_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:538: error: "Wall" has no attribute "extraData" [attr-defined]
BuildLibs\buildmapbase.py:543: error: "MapFileBase" has no attribute "SPRITE_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:546: error: "MapFileBase" has no attribute "mapRevision" [attr-defined]
BuildLibs\buildmapbase.py:546: error: "MapFileBase" has no attribute "SPRITE_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:548: error: "MapFileBase" has no attribute "spritePacker" [attr-defined]
BuildLibs\buildmapbase.py:549: error: "MapFileBase" has no attribute "SPRITE_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:552: error: "MapFileBase" has no attribute "SPRITE_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:577: error: "MapFileBase" has no attribute "headerPacker" [attr-defined]
BuildLibs\buildmapbase.py:577: error: "MapFileBase" has no attribute "HEADER_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:578: error: "MapFileBase" has no attribute "HEADER_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:582: error: "MapFileBase" has no attribute "headerPacker" [attr-defined]
BuildLibs\buildmapbase.py:626: error: "MapFileBase" has no attribute "sectorPacker"; maybe "sectorCache"? [attr-defined]
BuildLibs\buildmapbase.py:630: error: "MapFileBase" has no attribute "mapRevision" [attr-defined]
BuildLibs\buildmapbase.py:630: error: "MapFileBase" has no attribute "SECTOR_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:633: error: "Sector" has no attribute "extraData" [attr-defined]
BuildLibs\buildmapbase.py:653: error: "MapFileBase" has no attribute "wallPacker" [attr-defined]
BuildLibs\buildmapbase.py:657: error: "MapFileBase" has no attribute "mapRevision" [attr-defined]
BuildLibs\buildmapbase.py:657: error: "MapFileBase" has no attribute "SECTOR_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:660: error: "Wall" has no attribute "extraData" [attr-defined]
BuildLibs\buildmapbase.py:679: error: "MapFileBase" has no attribute "spritePacker" [attr-defined]
BuildLibs\buildmapbase.py:683: error: "MapFileBase" has no attribute "mapRevision" [attr-defined]
BuildLibs\buildmapbase.py:683: error: "MapFileBase" has no attribute "SPRITE_SIZE" [attr-defined]
BuildLibs\buildmapbase.py:716: error: Need type annotation for "shapes" [var-annotated]
BuildLibs\buildmapbase.py:737: error: Item "None" of "Optional[Set[Any]]" has no attribute "__iter__" (not iterable) [union-attr]
BuildLibs\buildmapbase.py:747: error: Item "None" of "Optional[List[Any]]" has no attribute "__iter__" (not iterable) [union-attr]
BuildLibs\buildmap.py:101: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
BuildLibs\buildmap.py:113: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
BuildLibs\buildmap.py:237: error: "BloodMap" has no attribute "songid" [attr-defined]
BuildLibs\buildmap.py:264: error: "BloodMap" has no attribute "pskybits" [attr-defined]
BuildLibs\buildmap.py:288: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
BuildLibs\buildmap.py:297: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
BuildLibs\buildmap.py:308: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
BuildLibs\grpbase.py:39: error: Return value expected [return-value]
BuildLibs\grpbase.py:44: error: Need type annotation for "files" (hint: "files: Dict[<type>, <type>] = ...") [var-annotated]
BuildLibs\grpbase.py:126: error: Incompatible types in assignment (expression has type "str", variable has type "Path") [assignment]
BuildLibs\grpbase.py:137: error: Incompatible types in assignment (expression has type "List[<nothing>]", variable has type "None") [assignment]
BuildLibs\grpbase.py:140: error: "None" has no attribute "append" [attr-defined]
BuildLibs\grpbase.py:141: error: Incompatible return value type (got "None", expected "List[Path]") [return-value]
BuildLibs\grpbase.py:168: error: Incompatible types in assignment (expression has type "List[Any]", variable has type "Set[Any]") [assignment]
BuildLibs\grpbase.py:169: error: "Set[Any]" has no attribute "sort" [attr-defined]
BuildLibs\grpbase.py:228: error: Too many arguments for "GetGrpOutput" of "GrpBase" [call-arg]
BuildLibs\grpbase.py:228: error: Argument 3 to "GetGrpOutput" of "GrpBase" has incompatible type "int"; expected "bool" [arg-type]
BuildLibs\grpbase.py:292: error: Incompatible default for argument "basepath" (default has type "str", argument has type "Path") [assignment]
BuildLibs\grpbase.py:305: error: Incompatible types in assignment (expression has type "Path", variable has type "None") [assignment]
BuildLibs\grpbase.py:341: error: Incompatible types in assignment (expression has type "Path", variable has type "None") [assignment]
BuildLibs\grpbase.py:368: error: Need type annotation for "files" (hint: "files: Dict[<type>, <type>] = ...") [var-annotated]
BuildLibs\grp.py:24: error: Unsupported left operand type for + ("Path") [operator]
BuildLibs\grp.py:63: error: Signature of "GetGrpOutput" incompatible with supertype "GrpBase" [override]
BuildLibs\grp.py:63: note: Superclass:
BuildLibs\grp.py:63: note: def GetGrpOutput(self, basepath: Path, num_files: int, full: bool) -> Any
BuildLibs\grp.py:63: note: Subclass:
BuildLibs\grp.py:63: note: def GetGrpOutput(self, basepath: Path, num_files: int, seed: int, full: bool) -> Any
BuildLibs\grp.py:99: error: Signature of "GetGrpOutput" incompatible with supertype "GrpBase" [override]
BuildLibs\grp.py:99: note: Superclass:
BuildLibs\grp.py:99: note: def GetGrpOutput(self, basepath: Path, num_files: int, full: bool) -> Any
BuildLibs\grp.py:99: note: Subclass:
BuildLibs\grp.py:99: note: def GetGrpOutput(self, basepath: Path, num_files: int, seed: int, full: bool) -> Any
BuildLibs\grp.py:136: error: Unsupported left operand type for + ("Path") [operator]
BuildLibs\grp.py:176: error: Signature of "GetGrpOutput" incompatible with supertype "GrpBase" [override]
BuildLibs\grp.py:176: note: Superclass:
BuildLibs\grp.py:176: note: def GetGrpOutput(self, basepath: Path, num_files: int, full: bool) -> Any
BuildLibs\grp.py:176: note: Subclass:
BuildLibs\grp.py:176: note: def GetGrpOutput(self, basepath: Path, num_files: int, seed: int, full: bool) -> Any
BuildLibs\grp.py:249: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
GUI\gui.py:15: error: Argument 1 to "update" of "MutableMapping" has incompatible type "Dict[str, bool]"; expected "SupportsKeysAndGetItem[str, str]" [arg-type]
GUI\gui.py:38: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
GUI\gui.py:126: error: Argument 1 to "GetDeletes" of "GrpBase" has incompatible type "None"; expected "Path" [arg-type]
GUI\gui.py:129: error: Need type annotation for "maps" (hint: "maps: Dict[<type>, <type>] = ...") [var-annotated]
GUI\gui.py:188: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
GUI\gui.py:196: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
GUI\gui.py:203: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
GUI\gui.py:210: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
GUI\gui.py:218: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
GUI\gui.py:225: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
GUI\gui.py:232: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
GUI\gui.py:239: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
GUI\gui.py:248: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
tests.py:27: error: Incompatible types in assignment (expression has type "None", variable has type "Callable[[str, str], int]") [assignment]
tests.py:122: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
tests.py:146: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
tests.py:174: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
tests.py:190: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
tests.py:208: error: Assignment to variable "e" outside except: block [misc]
tests.py:209: error: Trying to read deleted variable "e" [misc]
tests.py:302: error: Incompatible types in assignment (expression has type "mmap", variable has type "TextIOWrapper") [assignment]
tests.py:303: error: Argument 1 to "md5" has incompatible type "TextIOWrapper"; expected "Union[bytes, Union[bytearray, memoryview, array[Any], mmap, _CData, PickleBuffer]]" [arg-type]
Found 108 errors in 9 files (checked 1 source file)