Skip to content

Commit 5a8b051

Browse files
idocyabrabagerard
authored andcommitted
Pre-commit
1 parent 94e4c90 commit 5a8b051

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

mongoengine/queryset/base.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,14 @@ def upsert_one(self, write_concern=None, read_concern=None, **update):
634634
document = self._document.objects.with_id(atomic_update.upserted_id)
635635
return document
636636

637-
def update_one(self, upsert=False, write_concern=None, full_result=False, array_filters=None, **update):
637+
def update_one(
638+
self,
639+
upsert=False,
640+
write_concern=None,
641+
full_result=False,
642+
array_filters=None,
643+
**update,
644+
):
638645
"""Perform an atomic update on the fields of the first document
639646
matched by the query.
640647
@@ -662,9 +669,13 @@ def update_one(self, upsert=False, write_concern=None, full_result=False, array_
662669
)
663670

664671
def modify(
665-
self, upsert=False, full_response=False, remove=False, new=False,
666-
array_filters=None,
667-
**update
672+
self,
673+
upsert=False,
674+
full_response=False,
675+
remove=False,
676+
new=False,
677+
array_filters=None,
678+
**update,
668679
):
669680
"""Update and return the updated document.
670681

0 commit comments

Comments
 (0)