Skip to content

Commit

Permalink
Memory violation
Browse files Browse the repository at this point in the history
  • Loading branch information
george-zubrienko committed Oct 5, 2023
1 parent 98a3ada commit f4768e4
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions tests/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,8 @@ class DataClassWithCounter:
c: Counter[str]


if sys.version_info.minor < 11:
@dataclass_json
@dataclass
class DataClassWithSelf(DataClassJsonMixin):
id: str
ref: Optional['DataClassWithSelf']
else:
@dataclass_json
@dataclass
class DataClassWithSelf(DataClassJsonMixin):
id: str
ref: Optional[DataClassWithSelf]
@dataclass_json
@dataclass
class DataClassWithSelf(DataClassJsonMixin):
id: str
ref: Optional['DataClassWithSelf']

0 comments on commit f4768e4

Please sign in to comment.