Skip to content

Commit

Permalink
Fix recursion error caused by recursive dataclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Aug 31, 2024
1 parent edb4333 commit 8ab9a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HexBug/hexdecode/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def __init__(self, display: str, *args: object) -> None:
self.display = display


@dataclass
class SpecialHandler(ABC):
info: SpecialHandlerPatternInfo = field(init=False)
def __init__(self) -> None:
self.info: SpecialHandlerPatternInfo

@abstractmethod
def parse_pattern(self, direction: Direction, pattern: str) -> Any | None:
Expand Down

0 comments on commit 8ab9a61

Please sign in to comment.