-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
devopsInvolves build systems, Make files, Bazel files, continuous integration, and or other DevOps topicsInvolves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics
Description
mypy/numpy type checking keeps getting stricter about our abuse of the NDArray type annotation. We use numpy arrays of python objects and use NDArray[MyCustomObject] type annotations, which numpy doesn't like. It only wants its native datatypes as generic parameters, so these should be NDArray[np.object_] but then we lose the documentation benefits. I'm not sure the best way to proceed. As a workaround, we've been adding type: ignore comments.
Metadata
Metadata
Assignees
Labels
devopsInvolves build systems, Make files, Bazel files, continuous integration, and or other DevOps topicsInvolves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics