Skip to content

Commit 3e51325

Browse files
committed
CI: patch flake8 issue
1 parent 0523d3e commit 3e51325

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sourcehold/tool/convert/aiv/imports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
import struct
33
from turtle import position
4-
from typing import Dict
4+
from typing import Dict, Union
55
import numpy as np
66
from sourcehold.aivs.AIV import AIV
77
from sourcehold.tool.convert.aiv.info import AIV_HEIGHT, AIV_WIDTH, CONSTRUCTIONS_STRUCT_FORMAT, INDEX_CONSTRUCTIONS, INDEX_MISC, INDEX_PAUSE, INDEX_PAUSES, INDEX_STEP_COUNT, INDEX_STEPS, MAPPER_BUILDING_SIZES, MAPPERS_SH1_VK, PAUSES_STRUCT_FORMAT_50, STEPS_STRUCT_FORMAT, UNITS_STRUCT_FORMAT, convertMapperEnumToAIVEnum, get_constructions_matrix, get_steps_matrix, get_units_matrix, x_range, y_range
@@ -31,7 +31,7 @@ def convert_offsets(offsets, invert_y=False):
3131
for loc in offsets:
3232
yield convert_offset(loc, invert_y=invert_y)
3333

34-
def from_json(path: str | None = None, data: Dict | None = None, f=None, invert_y = True, report = False):
34+
def from_json(path: Union[str, None] = None, data: Union[Dict, None] = None, f=None, invert_y = True, report = False):
3535
if not path and not data and not f:
3636
raise Exception()
3737

0 commit comments

Comments
 (0)