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

Fixes _kwargs in local sub paths #158

Merged
merged 4 commits into from
Oct 19, 2023
Merged

Fixes _kwargs in local sub paths #158

merged 4 commits into from
Oct 19, 2023

Conversation

normanrz
Copy link
Collaborator

@normanrz normanrz commented Oct 19, 2023

This PR adds _kwargs to _from_parsed_paths to WindowsUPath and PosixUPath. This makes _kwargs available when creating a path like WindowsUPath("C:/Users") / "foo".

Fixes #156

@normanrz normanrz self-assigned this Oct 19, 2023
@ap--
Copy link
Collaborator

ap-- commented Oct 19, 2023

Ah, sorry. I meant _from_parsed_parts in the issue...

@normanrz normanrz marked this pull request as ready for review October 19, 2023 19:43
url=None,
**kwargs: Any,
):
obj = super(UPath, cls)._from_parsed_parts( # type: ignore[misc]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am not sure why mypy complained here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure either. Especially since it didn't complain with _from_parts...

@normanrz normanrz requested a review from ap-- October 19, 2023 19:44
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.

Thanks! I'll merge and prep a new release right away.

url=None,
**kwargs: Any,
):
obj = super(UPath, cls)._from_parsed_parts( # type: ignore[misc]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure either. Especially since it didn't complain with _from_parts...

@ap-- ap-- merged commit 8867a0a into main Oct 19, 2023
15 checks passed
@ap-- ap-- deleted the fixes-156 branch June 15, 2024 09:53
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.

storage_options doesn't work for local paths
2 participants