PY-61591 The scope of a class' variable does not extend to contained blocks

GitOrigin-RevId: 871bb3584f9c72f91aced9e86909feccf0a901d7
This commit is contained in:
Petr
2025-09-05 18:12:43 +00:00
committed by intellij-monorepo-bot
parent 059a568ad0
commit 3affb20872
4 changed files with 25 additions and 3 deletions
@@ -0,0 +1,9 @@
class A:
def foo(self): ...
def bar(self):
def baz():
foo()
def foo():
print('baz')
@@ -0,0 +1,6 @@
class A:
def foo(self): ...
def bar(self):
def baz():
<selection>print('baz')</selection>