You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
deff():
x=Noney=Nonedefg():
nonlocalx, yx=123y=234returnx, y
definitions of x come as x = 123 and x = None and we drop the outer one. PyCharm actually points to definition in nonlocal x. So we should figure out that x is nonlocal and either point to the nonlocal line or to x = None.
The text was updated successfully, but these errors were encountered:
This is b/c in
definitions of x come as
x = 123
andx = None
and we drop the outer one. PyCharm actually points to definition innonlocal x
. So we should figure out thatx
isnonlocal
and either point to thenonlocal
line or tox = None
.The text was updated successfully, but these errors were encountered: