Skip to content

Commit

Permalink
Fixed dump method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Nov 24, 2020
1 parent 62ba495 commit 0ec347c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/labthings/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ def serialize(self, value):

return self.field.serialize("value", obj)

def dump(self, value: Any, *_): # pylint: disable=arguments-differ
# We disable pylint unused-argument so we can keep the same signature as the base class
# pylint: disable=unused-argument
def dump(self, obj: Any, *, many: Optional[bool] = None):
"""
:param value:
"""
return self.serialize(value)
return self.serialize(obj)


class LogRecordSchema(Schema):
Expand Down

0 comments on commit 0ec347c

Please sign in to comment.