Skip to content

Do not have explicit dtype in hints #211

@juanitorduz

Description

@juanitorduz

When trying to fix #210 I am seeing a lot of casting code which can be distracting and really not important. What if we use something like

https://numpy.org/doc/stable/reference/typing.html#number-precision

or even

from jaxtyping import Array

from https://docs.kidger.site/jaxtyping/ (despite the name of the package we can just use it for NumPy)

JAX has a nice array convention, but I do not see this in NumPy (ArrayLike, yes but not purely Array), see https://jax.readthedocs.io/en/latest/jep/12049-type-annotations.html

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions