Files
openide/python/testData/inspections/PyUnresolvedReferencesInspection/instanceAttributeCreatedThroughWithStatement.py
Semyon Proshev 0e377b5dc6 PY-21651 Fixed: Unresolved reference for attributes created by with statements
Visit with-statements while collecting targets inside `__int__` and `__new__` methods
2017-02-07 13:51:25 +03:00

7 lines
153 B
Python

class Foo(object):
def __init__(self):
with open('scope') as self.scope:
pass
def get_scope(self):
return self.scope