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 Mar 19, 2024
1 parent 9380400 commit d87f5d0
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, cache, path):
@_cache
def _unwrap_object(cls, data, cache, path):
return {
key: cls._unwrap(attr, cache, path + [key])
key: cls._unwrap(getattr(data, key), cache, 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 d87f5d0

Please sign in to comment.