Skip to content

Commit 40627c5

Browse files
committed
minor cleanup [#16]
1 parent 0b394bb commit 40627c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bunq/sdk/json/converter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ def _deserialize_dict(cls, cls_target, dict_):
165165

166166
instance = cls_target.__new__(cls_target, cls_target)
167167
dict_deserialized = cls._deserialize_dict_attributes(cls_target, dict_)
168-
instance.__dict__ = cls._set_default_values(cls_target,
169-
dict_deserialized)
168+
instance.__dict__ = cls._fill_default_values(cls_target,
169+
dict_deserialized)
170170

171171
return instance
172172

@@ -370,15 +370,15 @@ def _warn_key_unknown(cls, cls_context, key):
370370
warnings.warn(cls._WARNING_KEY_UNKNOWN.format(key, context_name))
371371

372372
@classmethod
373-
def _set_default_values(cls, cls_context, dict_):
373+
def _fill_default_values(cls, cls_context, dict_):
374374
"""
375375
:type cls_context: type
376376
:type dict_: dict
377377
378378
:rtype: dict
379379
"""
380380

381-
dict_with_default_values = dict_.copy()
381+
dict_with_default_values = dict(dict_)
382382
params = re.findall(cls._PATTERN_PARAM_NAME_TYPED_ANY,
383383
cls_context.__doc__)
384384

0 commit comments

Comments
 (0)