Island: Add return type to the APIEncoder.default

This commit is contained in:
vakarisz 2022-07-12 16:32:47 +03:00
parent 88c331d932
commit 897221e47a
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from common.utils import IJSONSerializable
class APIEncoder(JSONEncoder):
def default(self, value: Any):
def default(self, value: Any) -> Any:
# ObjectId is serializible by default, but returns a dict
# So serialize it first into a plain string
if isinstance(value, bson.objectid.ObjectId):