Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions meilisearch/models/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def __init__(self, dist: Dict[str, int]) -> None:
for key in dist:
setattr(self, key, dist[key])

def __getattr__(self, attr: str) -> str:
def __getattr__(self, attr: str) -> int:
if attr in self.__dict.keys():
return attr
return self.__dict[attr]
raise AttributeError(f"{self.__class__.__name__} object has no attribute {attr}")

def __iter__(self) -> Iterator:
Expand Down