-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rename in place of first non-posonlyarg
The first non-posonly arg in a method definition was mistakenly thought to be 'self' and eligible for renaming in place. This change accounts for any posonly args when considering the 'first' argument to a method. e.g arg will no longer be renamed in place: ```python class MyClass def my_method(self, /, my_arg): pass ```
- Loading branch information
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters