Skip to content

fix: pyright error: Type "floating[Any]" is not assignable to return … #26

fix: pyright error: Type "floating[Any]" is not assignable to return …

fix: pyright error: Type "floating[Any]" is not assignable to return … #26

Triggered via push December 10, 2024 15:25
Status Failure
Total duration 32s
Artifacts

pyright.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
pyright: dpdata/system.py#L1052
Argument of type "numpy.bool[builtins.bool] | NDArray[numpy.bool[builtins.bool]]" cannot be assigned to parameter "idx" of type "int | Integral | list[int] | slice | ndarray[Unknown, Unknown]" in function "pick_atom_idx" (reportArgumentType)
pyright
1 error
pyright
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636