Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
loynoir opened this issue Jan 27, 2022 · 1 comment

Comments

@loynoir
Copy link

loynoir commented Jan 27, 2022

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
Copy link
Author

loynoir commented Jan 27, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants