Skip to content

Commit

Permalink
chore: don't repr YaTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
Olegt0rr committed Oct 30, 2023
1 parent 8ba276b commit 2e2969e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions yatracker/types/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,14 @@ class Base(Printable, Struct, omit_defaults=True, rename="camel"):
"""Base structure class."""

_tracker: Any = None # this field will be filled after decoding

def __repr__(self) -> str:
"""Represent the object without tech fields."""
fields = ", ".join(
[
f"{k}={getattr(self, k)!r}"
for k in self.__struct_fields__
if not k.startswith("_")
],
)
return f"{self.__class__.__name__}({fields})"

0 comments on commit 2e2969e

Please sign in to comment.