Skip to content

Commit

Permalink
construct typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron committed Jul 23, 2024
1 parent 32bbaf6 commit d6e63da
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 14 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ max-complexity = 25
[project.optional-dependencies]
typing = [
"types-jsonschema",
"construct-typing",
"types-pyinstaller",
"mypy"
]
Expand Down
2 changes: 1 addition & 1 deletion src/open_samus_returns_rando/lua_editor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import itertools
from collections.abc import Iterable

from construct import Container
from construct import Container # type: ignore[import-untyped]
from mercury_engine_data_structures.formats.lua import Lua

from open_samus_returns_rando.constants import ALL_SCENARIOS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from construct import Container
from construct import Container # type: ignore[import-untyped]
from mercury_engine_data_structures.formats.lua import Lua
from open_samus_returns_rando.misc_patches import lua_util
from open_samus_returns_rando.patcher_editor import PatcherEditor
Expand Down
2 changes: 1 addition & 1 deletion src/open_samus_returns_rando/misc_patches/elevators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from construct import Container
from construct import Container # type: ignore[import-untyped]
from mercury_engine_data_structures.formats.lua import Lua
from open_samus_returns_rando.misc_patches import lua_util
from open_samus_returns_rando.patcher_editor import PatcherEditor
Expand Down
2 changes: 1 addition & 1 deletion src/open_samus_returns_rando/misc_patches/lua_util.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re
import typing

from construct import Container
from construct import Container # type: ignore[import-untyped]
from mercury_engine_data_structures.file_tree_editor import FileTreeEditor
from mercury_engine_data_structures.formats.lua import Lua
from open_samus_returns_rando.files import files_path, templates_path
Expand Down
2 changes: 1 addition & 1 deletion src/open_samus_returns_rando/patcher_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import typing
from pathlib import Path

from construct import Container
from construct import Container # type: ignore[import-untyped]
from mercury_engine_data_structures.file_tree_editor import FileTreeEditor
from mercury_engine_data_structures.formats import BaseResource, Bmsld
from mercury_engine_data_structures.game_check import Game
Expand Down
2 changes: 1 addition & 1 deletion src/open_samus_returns_rando/pickups/custom_pickups.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typing

from construct import Container, ListContainer
from construct import Container, ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsmsd
from open_samus_returns_rando.patcher_editor import PatcherEditor

Expand Down
2 changes: 1 addition & 1 deletion src/open_samus_returns_rando/pickups/pickup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import json
from enum import Enum

from construct import Container, ListContainer
from construct import Container, ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad, Bmsmsd, Lua
from mercury_engine_data_structures.formats.bmsmsd import TileType
from open_samus_returns_rando.constants import get_package_name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typing

from construct import Container, ListContainer
from construct import Container, ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad, Bmsmsd
from open_samus_returns_rando.patcher_editor import PatcherEditor

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import typing
from enum import Enum

from construct import Container, ListContainer
from construct import Container, ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad, Bmsld, Bmsmsd, Lua
from mercury_engine_data_structures.formats.bmsmsd import IconPriority, TileBorders
from open_samus_returns_rando.files import files_path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from construct import Container
from construct import Container # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad, Bmsbk
from open_samus_returns_rando.patcher_editor import PatcherEditor

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import copy
import typing

from construct import Container, ListContainer
from construct import Container, ListContainer # type: ignore[import-untyped]
from open_samus_returns_rando.patcher_editor import PatcherEditor


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typing

from construct import ListContainer
from construct import ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad
from open_samus_returns_rando.patcher_editor import PatcherEditor

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import copy
import typing

from construct import Container, ListContainer
from construct import Container, ListContainer # type: ignore[import-untyped]
from mercury_engine_data_structures.formats import Bmsad, Bmsbk, Bmscc, Bmssd, Bmtun
from open_samus_returns_rando.patcher_editor import PatcherEditor

Expand Down

0 comments on commit d6e63da

Please sign in to comment.