1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-04 08:46:07 +00:00

Change T|None to typing.Optional[T]

This commit is contained in:
cadmic 2024-01-24 14:13:37 -08:00
parent a725db153a
commit 477334e527

View file

@ -1,6 +1,7 @@
import csv import csv
from dataclasses import dataclass from dataclasses import dataclass
from pathlib import Path from pathlib import Path
import typing
@dataclass @dataclass
class DmaFile: class DmaFile:
@ -9,8 +10,8 @@ class DmaFile:
vrom_end: int vrom_end: int
rom_start: int rom_start: int
rom_end: int rom_end: int
overlay_vram_start: int|None overlay_vram_start: typing.Optional[int]
overlay_dir: str|None overlay_dir: typing.Optional[str]
def parse_file_addresses(path: Path) -> list[DmaFile]: def parse_file_addresses(path: Path) -> list[DmaFile]:
result = [] result = []