1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-03 00:06:37 +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
from dataclasses import dataclass
from pathlib import Path
import typing
@dataclass
class DmaFile:
@ -9,8 +10,8 @@ class DmaFile:
vrom_end: int
rom_start: int
rom_end: int
overlay_vram_start: int|None
overlay_dir: str|None
overlay_vram_start: typing.Optional[int]
overlay_dir: typing.Optional[str]
def parse_file_addresses(path: Path) -> list[DmaFile]:
result = []