-
Notifications
You must be signed in to change notification settings - Fork 43
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
Conversation
Ah, sorry. I meant |
url=None, | ||
**kwargs: Any, | ||
): | ||
obj = super(UPath, cls)._from_parsed_parts( # type: ignore[misc] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
...
There was a problem hiding this 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] |
There was a problem hiding this comment.
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
...
This PR adds
_kwargs
to_from_parsed_paths
toWindowsUPath
andPosixUPath
. This makes_kwargs
available when creating a path likeWindowsUPath("C:/Users") / "foo"
.Fixes #156