Files
openide/python/testData/refactoring/rename/renameSelfAndParameterAttribute_after.py

17 lines
453 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
class С:
def __init__(self, x=None):
if x is None:
self.bar = {
'A': {
'x': 0,
'y': 0,
},
}
else: # init was given the previous state
assert isinstance(x, С)
self.bar = {
'A': {
'x': x.bar['A']['x'],
'y': x.bar['A']['y'],
},
}