1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00

Fix formatting

This commit is contained in:
A. R. Shajii 2023-03-23 23:09:46 -04:00
parent f19faf1f06
commit 94dca399c0

View File

@ -1890,7 +1890,7 @@ class _PyWrap:
def wrap_get(obj: cobj, closure: cobj, T: type, S: Static[str]):
return getattr(T.__from_py__(obj), S).__to_py__()
def wrap_set(obj: cobj, what: cobj, closure: cobj, T: type, S: Static[str]) -> i32:
def wrap_set(obj: cobj, what: cobj, closure: cobj, T: type, S: Static[str]) -> i32:
t = T.__from_py__(obj)
val = type(getattr(t, S)).__from_py__(what)
setattr(t, S, val)