Skip to content
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

[DataPipe] Fixing fsspec DataPipe to be compatible with new version of fsspec #957

Closed
wants to merge 1 commit into from

Conversation

NivekT
Copy link
Contributor

@NivekT NivekT commented Jan 20, 2023

Stack from ghstack:

Fixes #956

Context:

In the old version of fsspec, the default argument is detail=False for method ls for the filesystem memory, thus it returned a list of str. In the new version, the default is detail=True, which returns list of Dict.

Source code:
https://github.com/fsspec/filesystem_spec/blob/2023.1.0/fsspec/implementations/memory.py#L34

Differential Revision: D42646692

NivekT added a commit that referenced this pull request Jan 20, 2023
…f fsspec

ghstack-source-id: fa91e4dec9c48f7c5057a66e73b1bc6eb702ec93
Pull Request resolved: #957
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 20, 2023
@NivekT NivekT requested review from ejguan and wenleix January 20, 2023 20:46
Copy link
Contributor

@ejguan ejguan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@NivekT
Copy link
Contributor Author

NivekT commented Jan 20, 2023

@NivekT has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@NivekT merged this pull request in f64ea9a.

SvenDS9 pushed a commit to SvenDS9/PytorchData that referenced this pull request Jan 24, 2023
…ytorch#957)

Summary:
Pull Request resolved: pytorch#957

Fixes pytorch#956

Context:

In the old version of `fsspec`, the default argument is `detail=False` for method `ls` for the filesystem `memory`, thus it returned a list of `str`. In the new version, the default is `detail=True`, which returns list of `Dict`.

Source code:
https://github.com/fsspec/filesystem_spec/blob/2023.1.0/fsspec/implementations/memory.py#L34

Test Plan: Imported from OSS

Reviewed By: ejguan

Differential Revision: D42646692

Pulled By: NivekT

fbshipit-source-id: 41258a5a16487303a7e6895c484794c1f1d66e39
@facebook-github-bot facebook-github-bot deleted the gh/NivekT/104/head branch January 24, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants