Skip to content

Commit

Permalink
fix black and ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Jul 23, 2023
1 parent fdac638 commit e2021d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atproto/xrpc_client/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class ModelBase:
Provides square brackets [] notation to get attributes like in a dictionary.
"""

def __getitem__(self, item: str):
if hasattr(self, item):
return getattr(self, item)
Expand Down Expand Up @@ -35,7 +36,7 @@ class DotDict(UnknownDict):
"""Dot notation for dictionaries.
Note:
If the record is out of the official lexicon, its impossible to deserialize it to a proper data model.
If the record is out of the official lexicon, it`s impossible to deserialize it to a proper data model.
Such models will fall back to dictionaries.
All unknown "Union" types will also be caught as dicts.
This class exists to provide an ability to use such fallbacks as “real” data models.
Expand Down

0 comments on commit e2021d0

Please sign in to comment.