Skip to content

add overload to difflib.get_close_matches #3908

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

Merged
merged 4 commits into from
Apr 5, 2020
Merged

Conversation

JelleZijlstra
Copy link
Member

Fixes #3906. Fixes #2067.

Copy link
Contributor

@McSinyx McSinyx left a comment

Choose a reason for hiding this comment

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

I think bytes is also affected, so it might be a good idea to overload for AnyStr.

@JelleZijlstra
Copy link
Member Author

I think bytes is also affected, so it might be a good idea to overload for AnyStr.

Makes sense, I switched to AnyStr.

I don't want to think about what it would do in Python 2 if you mix str and unicode.

@srittau srittau merged commit 23e380a into master Apr 5, 2020
@srittau srittau deleted the difflib-get-close-matches branch April 5, 2020 12:12
vishalkuo pushed a commit to vishalkuo/typeshed that referenced this pull request Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants