Skip to content

Commit 16e3772

Browse files
committed
Also remove preprocess_dict method which is unused
Signed-off-by: Adam Glustein <Adam.Glustein@Point72.com>
1 parent 135027a commit 16e3772

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

csp/impl/struct.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,6 @@ def _obj_to_python(cls, obj):
120120
else:
121121
return obj
122122

123-
@classmethod
124-
def _preprocess_dict_from_python(cls, d):
125-
return d
126-
127123
@classmethod
128124
def _obj_from_python(cls, json, obj_type):
129125
obj_type = ContainerTypeNormalizer.normalize_type(obj_type)
@@ -148,7 +144,6 @@ def _obj_from_python(cls, json, obj_type):
148144
elif issubclass(obj_type, Struct):
149145
if not isinstance(json, dict):
150146
raise TypeError("Representation of struct as json is expected to be of dict type")
151-
json = obj_type._preprocess_dict_from_python(json)
152147
res = obj_type()
153148
for k, v in json.items():
154149
expected_type = obj_type.__full_metadata_typed__.get(k, None)

0 commit comments

Comments
 (0)