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

fix the incorrect list of ends for _cat_ranges #1402

Merged
merged 4 commits into from
Oct 26, 2023

Conversation

AlbertXingZhang
Copy link
Contributor

I think the list of "ends" should come from the argument "ends" if it is not iterable for the function "_cat_ranges".

@martindurant
Copy link
Member

(also in fsspec.spec)

@martindurant
Copy link
Member

Whilst you are right, the inputs are expected to be lists. This functions should have a docstring saying so, and tests making sure that it works. Obviously, this has been somewhat an experimental method, but it should be graduated to full use.

@AlbertXingZhang
Copy link
Contributor Author

Hi @martindurant, thanks for pointing out another place I missed. I also added it to the changes and wrote some docstrings for them. Please let me know if I need to make more changes or feel free to help revise them. Thanks.

fsspec/asyn.py Outdated Show resolved Hide resolved
fsspec/spec.py Outdated Show resolved Hide resolved
@AlbertXingZhang
Copy link
Contributor Author

Hi @martindurant, thanks for reviewing. I also trimmed the trailing whitespace complained by lint. I'm sorry I didn't notice it before.

@martindurant martindurant merged commit 71262d1 into fsspec:master Oct 26, 2023
11 checks passed
@martindurant
Copy link
Member

Thank you @AlbertXingZhang

@AlbertXingZhang
Copy link
Contributor Author

Thanks for merging, @martindurant🎉

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