Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 20, 2024
1 parent 69bd148 commit a970c2a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/mercury_engine_data_structures/formats/bmscc.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
VersionAdapter,
make_vector,
)
from mercury_engine_data_structures.construct_extensions.function_complex import ComplexIf
from mercury_engine_data_structures.construct_extensions.misc import ErrorWithMessage
from mercury_engine_data_structures.formats.collision import collision_formats

Expand All @@ -42,9 +41,7 @@
/ Switch(
construct.this.type,
collision_formats,
ErrorWithMessage(
lambda ctx: f"Type {ctx.type} not known, valid types are {list(collision_formats.keys())}."
),
ErrorWithMessage(lambda ctx: f"Type {ctx.type} not known, valid types are {list(collision_formats.keys())}."),
),
)

Expand All @@ -66,10 +63,7 @@
VersionAdapter("1.16.0"),
),
"layers" / make_vector(CollisionLayer),
"parts" / game_check.is_sr_or_else(
construct.Terminated,
make_vector(PartsComponent)
),
"parts" / game_check.is_sr_or_else(construct.Terminated, make_vector(PartsComponent)),
construct.Terminated,
)

Expand Down

0 comments on commit a970c2a

Please sign in to comment.