File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from enum import StrEnum
2+
3+
4+ class ICInstruction (StrEnum ):
5+ pass
Original file line number Diff line number Diff line change 77
88from dataclasses import dataclass
99
10- from src .arch .z80 .backend .icinstruction import ICInstruction
1110from src .symbols .symbol_ import Symbol
1211
12+ from .icinstruction import ICInstruction
13+
1314__all__ = ("Quad" ,)
1415
1516
Original file line number Diff line number Diff line change 55# See https://www.gnu.org/licenses/agpl-3.0.html for details.
66# --------------------------------------------------------------------
77
8- from enum import StrEnum
98from functools import lru_cache
109from typing import Any
1110
11+ from src .arch .interface .icinstruction import ICInstruction as ICInstructionInterface
1212from src .arch .z80 .backend .exception import InvalidICError
1313
1414__all__ = ("ICInstruction" ,)
1515
1616
1717# HINT: Do not use Enums here. They cannot be subclassed
18- class ICInstruction (StrEnum ):
18+ class ICInstruction (ICInstructionInterface ):
1919 ADDU8 = "addu8"
2020 ADDI8 = "addi8"
2121 ADDI16 = "addi16"
You can’t perform that action at this time.
0 commit comments