mirror of
https://github.com/etienne-hd/lbc.git
synced 2026-04-29 18:25:37 +02:00
fix(model): hide internal ad fields from repr
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from dataclasses import dataclass
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Any
|
||||
|
||||
from .user import User
|
||||
@@ -54,9 +54,9 @@ class Ad:
|
||||
has_phone: bool
|
||||
favorites: int # Unavailable on Ad from Search
|
||||
|
||||
_client: Any
|
||||
_user_id: str
|
||||
_user: User
|
||||
_client: Any = field(repr=False)
|
||||
_user_id: str = field(repr=False)
|
||||
_user: User = field(repr=False)
|
||||
|
||||
@staticmethod
|
||||
def _build(raw: dict, client: Any) -> "Ad":
|
||||
|
||||
Reference in New Issue
Block a user