Skip to content

Commit

Permalink
small ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wossnameGitHub committed Jul 14, 2024
1 parent 1544f51 commit 7bf32a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dolphin scripts/Entrance Randomizer/lib/entrance_rando.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


class NoConnectionFoundError(Exception):
"""Raised when the algorithm fails to find a valid connection to break open"""
"""Raised when the algorithm fails to find a valid connection to break open."""


class Transition(NamedTuple):
Expand Down
6 changes: 3 additions & 3 deletions Dolphin scripts/Entrance Randomizer/lib/graph_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ class LineType(IntEnum):
def create_own_style(params: dict):

Check failure on line 50 in Dolphin scripts/Entrance Randomizer/lib/graph_creation.py

View workflow job for this annotation

GitHub Actions / Run pyright

Type of parameter "params" is partially unknown   Parameter type is "dict[Unknown, Unknown]" (reportUnknownParameterType)

Check failure on line 50 in Dolphin scripts/Entrance Randomizer/lib/graph_creation.py

View workflow job for this annotation

GitHub Actions / Run pyright

Expected type arguments for generic class "dict" (reportMissingTypeArgument)
output_text = ' ownStyles="{"0":{'
first_key = True
for key in params:
if params[key] is not None:
for key, value in params.items():

Check failure on line 53 in Dolphin scripts/Entrance Randomizer/lib/graph_creation.py

View workflow job for this annotation

GitHub Actions / Run pyright

Type of "key" is unknown (reportUnknownVariableType)

Check failure on line 53 in Dolphin scripts/Entrance Randomizer/lib/graph_creation.py

View workflow job for this annotation

GitHub Actions / Run pyright

Type of "value" is unknown (reportUnknownVariableType)
if value is not None:
if not first_key:
output_text += ", "
output_text += f""{key}":"{params[key]}""
output_text += f""{key}":"{value}""
first_key = False
output_text += '}}"'
return output_text
Expand Down

0 comments on commit 7bf32a6

Please sign in to comment.