mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-04 00:36:09 +00:00
Change T|None to typing.Optional[T]
This commit is contained in:
parent
a725db153a
commit
477334e527
1 changed files with 3 additions and 2 deletions
|
@ -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 = []
|
||||||
|
|
Loading…
Reference in a new issue