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

feat: expanduser no-op #293

Merged
merged 3 commits into from
Oct 4, 2024
Merged

Conversation

ollie-bell
Copy link
Contributor

Fixes #292

Copy link
Collaborator

@ap-- ap-- left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!

Could you add a small test to test_core.py that verifies the following:

x = upath.UPath("~/abc")
assert x != x.expanduser()

The difference between pathlib paths and protocol based UPaths is that UPaths are always absolute, so expanduser has no effect. whereas for PosixUPath and WindowsUPath this differs.

upath/tests/cases.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@ap-- ap-- left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

@ap-- ap-- merged commit 70b1a78 into fsspec:main Oct 4, 2024
22 checks passed
@ollie-bell ollie-bell deleted the feat-expanduser-no-op branch October 4, 2024 10:58
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.

expanduser implementation for geopandas
2 participants