Thanks to visit codestin.com
Credit goes to github.com

Skip to content

None.__bool__ returns Literal[False] - #11290

Merged
JelleZijlstra merged 2 commits into
python:masterfrom
sobolevn:issue-11287
Oct 11, 2021
Merged

None.__bool__ returns Literal[False]#11290
JelleZijlstra merged 2 commits into
python:masterfrom
sobolevn:issue-11287

Conversation

@sobolevn

@sobolevn sobolevn commented Oct 7, 2021

Copy link
Copy Markdown
Member

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
Comment thread mypy/checkmember.py
@sobolevn

sobolevn commented Oct 7, 2021

Copy link
Copy Markdown
Member Author

@JelleZijlstra thanks! Now it should be fixed! 👍

@hauntsaninja hauntsaninja left a comment

Copy link
Copy Markdown
Collaborator

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