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

Skip to content

Use _typeshed.NoneType for the type of None #11287

Description

@KotlinIsland

Currently mypy uses a hardcoded type for NoneType, I think it should use the one from typeshed.

reveal_type(None.__bool__())  # note: Revealed type is "builtins.bool"

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions