Skip to content

Conversation

@srittau
Copy link
Collaborator

@srittau srittau commented May 16, 2021

Standardize on 'from os import PathLike'

Marking as draft as this builds on #5466.

@srittau srittau marked this pull request as ready for review May 16, 2021 14:27
if sys.version_info >= (3, 7):
def connect(
database: Union[bytes, str, os.PathLike[str]],
database: AnyPath,
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 checked.

def urlretrieve(
url: str,
filename: Optional[Union[str, os.PathLike[Any]]] = ...,
filename: Optional[AnyPath] = ...,
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 checked as well. Works with bytes.

@srittau
Copy link
Collaborator Author

srittau commented May 16, 2021

Primer is clean.

@srittau srittau merged commit e5abd08 into python:master May 16, 2021
@srittau srittau deleted the use-typeshed branch May 16, 2021 19:38
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