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 Jul 14, 2024
1 parent fc65a3f commit 1544f51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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.keys():
for key in params:

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)
if params[key] is not None:
if not first_key:
output_text += ', '
output_text += f'"{key}":"{params[key]}"'
output_text += ", "
output_text += f""{key}":"{params[key]}""
first_key = False
output_text += '}}"'
return output_text
Expand Down Expand Up @@ -126,8 +126,8 @@ def edge_component(
)
if line_type == LineType.DASHED or color is not None:
output += create_own_style({
'strokeStyle': color,
'lineDash': '2' if line_type == LineType.DASHED else None,
"strokeStyle": color,
"lineDash": "2" if line_type == LineType.DASHED else None,
})
output += "></edge>\n"
return output
Expand Down

0 comments on commit 1544f51

Please sign in to comment.