Skip to content

Commit 2287b32

Browse files
committed
Avoid using walrus operator to stay compatible with python version earlier than 3.8
1 parent 4132eb8 commit 2287b32

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, paths_by_id, path):
5858
@_handle_circular_ref
5959
def _unwrap_object(cls, data, paths_by_id, path):
6060
return {
61-
key: cls._unwrap(attr, paths_by_id, path + [key])
61+
key: cls._unwrap(getattr(data, key), paths_by_id, 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)