Skip to content

TYP: _NoValueType annotations missing for certain function parameters in _core/fromnumeric.pyi #29595

@jorenham

Description

@jorenham

In these cases, the defaults are annotated as = ..., which at runtime would be _NoValue, so these annotations should therefore also accept _NoValueType.
But this is currently not the case for the following function parameters in _core/fromnumeric.pyi:

  • argmin and argmax
    • keepdims
  • clip
    • a_min and a_max (also missing defaults)
    • min and max
  • sum and prod
    • keepdims
    • initial
    • where
  • ptp
    • keepdims
  • amin and amax
    • keepdims
    • initial
    • where
  • std and var
    • keepdims

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