Skip to content

Commit

Permalink
Update Schema.__repr__ to Python best-practice
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyclements committed Jan 27, 2024
1 parent 93f1ab2 commit f0d9b07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bindings/python/pymongoarrow/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def __iter__(self):
yield from self.typemap

def __repr__(self):
return str(self.typemap)
return f"<{self.__class__.__name__} {repr(self.typemap)}>"



@staticmethod
def _normalize_mapping(mapping):
Expand Down

0 comments on commit f0d9b07

Please sign in to comment.