From 897221e47aeac136f90debd4d144b067284b0f3e Mon Sep 17 00:00:00 2001 From: vakarisz Date: Tue, 12 Jul 2022 16:32:47 +0300 Subject: [PATCH] Island: Add return type to the APIEncoder.default --- monkey/monkey_island/cc/services/representations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/services/representations.py b/monkey/monkey_island/cc/services/representations.py index a441a45b8..e21fcdb25 100644 --- a/monkey/monkey_island/cc/services/representations.py +++ b/monkey/monkey_island/cc/services/representations.py @@ -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):