Skip to content

Commit

Permalink
Avoid using walrus operator to stay compatible with python version ea…
Browse files Browse the repository at this point in the history
…rlier than 3.8
  • Loading branch information
matez0 committed Jun 30, 2024
1 parent ce92fd1 commit 5f9fec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checkout_sdk/checkout_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def decorated_method(cls, data, paths_by_id, path):
@_handle_circular_ref
def _unwrap_object(cls, data, paths_by_id, path):
return {
key: cls._unwrap(attr, paths_by_id, path + [key])
key: cls._unwrap(getattr(data, key), paths_by_id, path + [key])
for key in dir(data)
if not key.startswith('__')
and not cls._is_function(attr := getattr(data, key))
and not cls._is_function(getattr(data, key))
}

@classmethod
Expand Down

0 comments on commit 5f9fec1

Please sign in to comment.