Files
openide/python/testData/inspections/PyUnresolvedReferencesInspection/instanceAttributeCreatedInsideWithStatement.py
Semyon Proshev d5204ab32b PY-23164 Fixed: unittest unresolved attribute reference in setUp inside with statement
Don't skip with-statement children while collecting target expressions inside function.
2017-03-24 14:53:55 +03:00

8 lines
167 B
Python

class Foo(object):
def __init__(self):
with open('b.py'):
self.scope = "a"
pass
def get_scope(self):
return self.scope