jedi icon indicating copy to clipboard operation
jedi copied to clipboard

[FeatureRequest] `F2` rename a function or class, should result changes in `__all__`

Open loynoir opened this issue 2 years ago • 1 comments

Actual

Change def <F2>pre</F2>(): to def post():

__all__ = ['pre']

def pre():
    pass

Error: Undefined variable name 'pre' in __all__


__all__ = ['pre']

def post():
    pass

Expected

Change def <F2>pre</F2>(): to def post():

__all__ = ['pre']

def pre():
    pass
__all__ = ['post']

def post():
    pass

loynoir avatar Jan 27 '22 17:01 loynoir

https://github.com/microsoft/vscode-python/issues/18365#issuecomment-1021969950

loynoir avatar Jan 27 '22 17:01 loynoir