Skip to content

Commit 0ec347c

Browse files
author
Joel Collins
committed
Fixed dump method signature
1 parent 62ba495 commit 0ec347c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/labthings/schema.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ def serialize(self, value):
5656

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

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

6767

6868
class LogRecordSchema(Schema):

0 commit comments

Comments
 (0)