Skip to content

Re-enable promotions in isinstance checks #6181

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

Conversation

Michael0x2a
Copy link
Collaborator

This pull request reverts #6114 and #6142: see #6180 for rationale.

In short, the original fix ended up being more disruptive then anticipated: it's modifying str and unicode semantics, and we should put a little more thought into reasoning about that particular case before moving ahead with any fix here.

This should also help unblock the upcoming 0.660 release.

This pull request reverts python#6114
and python#6142: see
python#6180 for rationale.

In short, the original fix ended up being more disruptive then
anticipated: it's modifying str and unicode semantics, and we should
put a little more thought into reasoning about that particular case
before moving ahead with any fix here.

This should also help unblock the upcoming 0.660 release.
@Michael0x2a
Copy link
Collaborator Author

I'll also reopen #6060 if we decide to go ahead with this PR.

Copy link
Collaborator

@msullivan msullivan left a comment

Choose a reason for hiding this comment

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

This issue is worth some more thought but I think this is the right course for now.

@Michael0x2a Michael0x2a merged commit 401a4e0 into python:master Jan 11, 2019
@Michael0x2a Michael0x2a deleted the revert-disabling-promotions-in-isinstance branch January 11, 2019 02:32
ilevkivskyi added a commit that referenced this pull request Oct 3, 2022
Fixes #13760 
Fixes #6060
Fixes #12824

This is a right thing to do, but let's what `mypy_primer` will be. This
also required re-applying #6181 (which is also a right thing to do)
otherwise some tests fail.
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