Repository navigation
Fix bug with function name replacement - #23
Conversation
|
Issue to clean up uneeded imports: #24 |
izaitsevfb
left a comment
There was a problem hiding this comment.
LGTM
looks like it should work correctly with nested qualified names, but a test for that may be warranted.
What do you mean exactly, could you give an example? |
Something like this: |
I don't understand. Do you mean a case when there is more than 1 dot in the qualified name? |
Sorry for not being clear. In my example I was indeed referring to the hypothetical case when If that case is supported and tested, then awesome. |
Before this PR, TorchFix in standalone mode crashes on
With this PR it works fine, replacing the code with
Note that the replacement code still imports no longer needed
ger, but that can be caught and fixed by existing linters like ruff.Nevertheless, I'll create an issue to clean this up later in TorchFix.