Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@YotamAlon
Copy link
Contributor

Hi!

I am using pylsp rope as an extension in vscode and encountered a situation where inline refactor is offered on a function parameter, which (I think) is not valid for inlining.

I have added a test to verify the issue and created a fix.

I thought fixing it here is more appropriate than in rope itself since technically there is nothing wrong with an empty refactor, it is simply not interesting to offer from the language server point-of-view.

Please let me know if I should change anything!

@lieryan
Copy link
Member

lieryan commented Nov 17, 2024

@YotamAlon thanks for the contribution, the change looks good to me.

@lieryan lieryan merged commit 2b62689 into python-rope:main Nov 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants