Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexable type generates linter warning with numpy arrays #35

Open
afedynitch opened this issue May 1, 2023 · 0 comments
Open

Indexable type generates linter warning with numpy arrays #35

afedynitch opened this issue May 1, 2023 · 0 comments

Comments

@afedynitch
Copy link

When passing the covariance as numpy array, the Indexable type generates linter warnings of the type:

Argument of type "NDArray[float64]" cannot be assigned to parameter "cov" of type "float | Indexable[float] | Indexable[Indexable[float]]" in function "propagate"
  Type "NDArray[float64]" cannot be assigned to type "float | Indexable[float] | Indexable[Indexable[float]]"
    "NDArray[float64]" is incompatible with "float"
    "NDArray[float64]" is incompatible with "Indexable[float]"
    "NDArray[float64]" is incompatible with "Indexable[Indexable[float]]"Pylance[reportGeneralTypeIssues](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportGeneralTypeIssues)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant