Skip to content

Commit

Permalink
fix: del dict meths
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 21, 2023
1 parent c708d0a commit 9683fe9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tokenlists/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@


class BaseModel(_BaseModel):
def dict(self, *args, **kwargs):
return self.model_dump(*args, **kwargs)

def model_dump(self, *args, **kwargs):
if "exclude_unset" not in kwargs:
kwargs["exclude_unset"] = True
Expand Down Expand Up @@ -194,9 +191,6 @@ def validate_uri(cls, v: Optional[str]) -> Optional[str]:

return v

def dict(self, *args, **kwargs):
return self.model_dump(*args, **kwargs)

def model_dump(self, *args, **kwargs) -> Dict:
data = super().model_dump(*args, **kwargs)

Expand Down

0 comments on commit 9683fe9

Please sign in to comment.