KEMBAR78
Make sure type inference works for literals against protocols by ilevkivskyi · Pull Request #7882 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

This is mostly important for builtin functions like round(), abs(), etc., that currently don't work well when a literal is passed to it.

Copy link
Collaborator

@Michael0x2a Michael0x2a left a comment

Choose a reason for hiding this comment

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

It looks like there's a CI failure? Not really sure what's happening there.

But otherwise LGTM.

@ilevkivskyi
Copy link
Member Author

Looks like an AppVeyor bug, I will try closing and re-opening.

@ilevkivskyi ilevkivskyi closed this Nov 5, 2019
@ilevkivskyi ilevkivskyi reopened this Nov 5, 2019
@ilevkivskyi
Copy link
Member Author

It didn't really help, but at least I can see that one of the builds on AppVeyor passed, I will merge now since this looks low risk.

@ilevkivskyi ilevkivskyi merged commit 0b2cf27 into python:master Nov 5, 2019
@ilevkivskyi ilevkivskyi deleted the fix-literal-protocol branch November 5, 2019 16:59
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