From 477334e52712c0ec86a825f6cccbc577442d4e58 Mon Sep 17 00:00:00 2001 From: cadmic Date: Wed, 24 Jan 2024 14:13:37 -0800 Subject: [PATCH] Change T|None to typing.Optional[T] --- tools/disasm/file_addresses.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/disasm/file_addresses.py b/tools/disasm/file_addresses.py index 1bb90d24ab..f085305e1b 100644 --- a/tools/disasm/file_addresses.py +++ b/tools/disasm/file_addresses.py @@ -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 = []