Skip to content

Commit 569b706

Browse files
committed
PYTHON-4834 Add __repr__ to IndexModel
- Prefer arg over kwarg for keys
1 parent f4b255b commit 569b706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymongo/operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,8 @@ def document(self) -> dict[str, Any]:
775775

776776
def __repr__(self) -> str:
777777
return "%s(%s%s)" % (
778-
self.__class__.__name__,
779-
"keys=%s" % self.document["key"],
778+
self.__class__.__name__,
779+
self.document["key"],
780780
"".join(
781781
[
782782
", %s=%r" % (key, value)

0 commit comments

Comments
 (0)