1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] Type hinting / annotation (PEP 484) for numpy.ndarray

Discussão em 'Python' iniciado por Stack, Outubro 4, 2024 às 05:32.

  1. Stack

    Stack Membro Participativo

    Has anyone implemented type hinting for the specific numpy.ndarray class?

    Right now, I'm using typing.Any, but it would be nice to have something more specific.

    For instance if the NumPy people added a type alias for their array_like object class. Better yet, implement support at the dtype level, so that other objects would be supported, as well as ufunc.

    Continue reading...

Compartilhe esta Página