mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
Fix formatting
This commit is contained in:
parent
f19faf1f06
commit
94dca399c0
@ -1890,7 +1890,7 @@ class _PyWrap:
|
|||||||
def wrap_get(obj: cobj, closure: cobj, T: type, S: Static[str]):
|
def wrap_get(obj: cobj, closure: cobj, T: type, S: Static[str]):
|
||||||
return getattr(T.__from_py__(obj), S).__to_py__()
|
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)
|
t = T.__from_py__(obj)
|
||||||
val = type(getattr(t, S)).__from_py__(what)
|
val = type(getattr(t, S)).__from_py__(what)
|
||||||
setattr(t, S, val)
|
setattr(t, S, val)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user