Skip to content

add positional argument #1820

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

Merged
merged 3 commits into from
Apr 3, 2025
Merged

add positional argument #1820

merged 3 commits into from
Apr 3, 2025

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