Skip to content

Commit ade758a

Browse files
committed
Avoid using walrus operator to stay compatible with python version earlier than 3.8
1 parent eabc742 commit ade758a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

checkout_sdk/checkout_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ def decorated_method(cls, data, cache, path):
5858
@_cache
5959
def _unwrap_object(cls, data, cache, path):
6060
return {
61-
key: cls._unwrap(attr, cache, path + [key])
61+
key: cls._unwrap(getattr(data, key), cache, path + [key])
6262
for key in dir(data)
6363
if not key.startswith('__')
64-
and not cls._is_function(attr := getattr(data, key))
64+
and not cls._is_function(getattr(data, key))
6565
}
6666

6767
@classmethod

0 commit comments

Comments
 (0)