Skip to content

Commit

Permalink
Better living through consistent documentation and python specific op…
Browse files Browse the repository at this point in the history
…timizations

Co-authored-by: Dan Allan <daniel.b.allan@gmail.com>
  • Loading branch information
Kezzsim and danielballan authored Feb 5, 2024
1 parent 82298f5 commit defb806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions suitcase/mongo_normalized/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ def update(self, name, doc):
Parameters
----------
name: {'start'} OR {'stop'} OR {'descriptor'}
name: {'start', 'stop', 'descriptor'}
The type of document being updated.
doc: dict
The new version of the document. Its uid will be used to match it
to the current version, the one to be updated.
"""
if name in ["start", "stop", "descriptor"]:
if name in {"start", "stop", "descriptor"}:
event_model.schema_validators[
getattr(event_model.DocumentNames, name)
].validate(doc)
Expand Down

0 comments on commit defb806

Please sign in to comment.