Skip to content

Conversation

ruoyeruolan
Copy link
Contributor

Fix compatibility issue with PyTorch Geometric

The current implementation of LocalFileSystem.mv() was causing "TypeError: takes 3 positional arguments but 4 were given" when called from PyTorch Geometric's fs.py.

This PR explicitly adds the recursive parameter to the method signature, allowing it to be properly called with this parameter without causing positional argument errors.

@martindurant
Copy link
Member

Please add documentation to the method, that this is always actually recursive, and the value of the argument makes no difference.

@martindurant martindurant merged commit aa1a301 into fsspec:master Apr 3, 2025
10 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