Skip to content

TYP: bool.__index__ annotation missing #27713

@randolf-scholz

Description

@randolf-scholz

Describe the issue:

The stub file for np.bool_ lacks the index method.

Reproduce the code example:

import numpy as np
import typing
typing.reveal_type(np.bool_.__index__)

Error message:

No response

Python and NumPy Versions:

2.1.3
3.12.5 (main, Aug 9 2024, 13:11:04) [GCC 11.4.0]

Type-checker version and settings:

mypy 1.13
pyright 1.1.388

Additional typing packages.

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions