Skip to content

Mypy crashes when using reveal_type on large literal int #17534

Description

@erictraut

I noticed this issue when exploring a feature request in pyright.

The following code results in an "INTERNAL ERROR" when running mypy.

from typing import Final

MY_CONST: Final = 2**100000
reveal_type(MY_CONST)

This is admittedly an edge case, perhaps not worth fixing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions