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

Remove compatibility aliases #5464

Merged
merged 6 commits into from
May 15, 2021
Merged

Remove compatibility aliases #5464

merged 6 commits into from
May 15, 2021

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented May 15, 2021

Remove a few instances of Text

Use aliases from _typeshed

def cmp(
f1: Union[bytes, Text, PathLike[AnyStr]], f2: Union[bytes, Text, PathLike[AnyStr]], shallow: Union[int, bool] = ...
) -> bool: ...
def cmp(f1: AnyPath, f2: AnyPath, shallow: Union[int, bool] = ...) -> bool: ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps we could just use shallow: bool on Python 3, although in a separate PR.

@Akuli Akuli merged commit 841a365 into python:master May 15, 2021
@srittau srittau deleted the remove-aliases branch May 15, 2021 18:44
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