KEMBAR78
`None.__bool__` returns `Literal[False]` by sobolevn · Pull Request #11290 · python/mypy · GitHub
Skip to content

Conversation

@sobolevn
Copy link
Member

@sobolevn sobolevn commented Oct 7, 2021

Closes #11287

@sobolevn sobolevn changed the title WIP: None.__bool_ returns Literal[None], refs #11287 WIP: None.__bool_ returns Literal[None] Oct 7, 2021
@sobolevn sobolevn changed the title WIP: None.__bool_ returns Literal[None] WIP: None.__bool_ returns Literal[False] Oct 7, 2021
@sobolevn sobolevn changed the title WIP: None.__bool_ returns Literal[False] WIP: None.__bool__ returns Literal[False] Oct 7, 2021
@sobolevn sobolevn changed the title WIP: None.__bool__ returns Literal[False] None.__bool__ returns Literal[False] Oct 7, 2021
@sobolevn
Copy link
Member Author

sobolevn commented Oct 7, 2021

@JelleZijlstra thanks! Now it should be fixed! 👍

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks, lgtm! (I don't really understand the desired behaviour when show_none_errors is True)

@JelleZijlstra JelleZijlstra merged commit 8e01ad9 into python:master Oct 11, 2021
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.

Use _typeshed.NoneType for the type of None

3 participants