8000 Document why basestring is usually a bad idea · Issue #4131 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Document why basestring is usually a bad idea #4131

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

Closed
JukkaL opened this issue Oct 18, 2017 · 1 comment
Closed

Document why basestring is usually a bad idea #4131

JukkaL opened this issue Oct 18, 2017 · 1 comment

Comments

@JukkaL
Copy link
Collaborator
JukkaL commented Oct 18, 2017

This could go into common issues, as problems with basestring come up pretty frequently.

Also recommend using Union[bytes, Text] or Union[bytes, str] instead (or AnyStr).

@emmatyping
Copy link
Member

Closing as duplicate of #1537 since that issue has more discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0