You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1
src/pymovements/gaze/transforms_numpy.py:251: error: Incompatible types in assignment (expression has type"ndarray[tuple[int, ...], dtype[floating[Any]]]", variable has type"ndarray[tuple[int, ...], dtype[float64]]") [assignment]
src/pymovements/gaze/transforms_numpy.py:377: error: Incompatible types in assignment (expression has type"ndarray[tuple[int, ...], dtype[floating[Any]]]", variable has type"ndarray[tuple[int, ...], dtype[float64]]") [assignment]
src/pymovements/datasets/toy_dataset_eyelink.py: error: Argument 5 of "__replace__" is incompatible with supertype "DatasetDefinition"; supertype defines the argument type as "Experiment | None" [override]
src/pymovements/datasets/toy_dataset_eyelink.py: note: This violates the Liskov substitution principle
src/pymovements/datasets/toy_dataset_eyelink.py: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
src/pymovements/datasets/toy_dataset_eyelink.py: error: Argument 11 of "__replace__" is incompatible with supertype "DatasetDefinition"; supertype defines the argument type as "list[str] | None" [override]
src/pymovements/datasets/toy_dataset_eyelink.py: error: Argument 12 of "__replace__" is incompatible with supertype "DatasetDefinition"; supertype defines the argument type as "str | None" [override]
src/pymovements/datasets/toy_dataset_eyelink.py: error: Argument 13 of "__replace__" is incompatible with supertype "DatasetDefinition"; supertype defines the argument type as "str | None" [override]
src/pymovements/datasets/toy_dataset_eyelink.py: error: Argument 14 of "__replace__" is incompatible with supertype "DatasetDefinition"; supertype defines the argument type as "list[str] | None" [override]
src/pymovements/datasets/toy_dataset.py: error: Argument 5 of "__replace__" is incompatible with supertype "DatasetDefinition"; supertype defines the argument type as "Experiment | None" [override]
src/pymovements/datasets/toy_dataset.py: note: This violates the Liskov substitution principle
src/pymovements/datasets/toy_dataset.py: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
Checklist
I am running the latest version
I checked the documentation and found no answer
I checked to make sure that this issue has not already been filed
I have provided sufficient information for the team
The text was updated successfully, but these errors were encountered:
Current Behavior
mypy fails, the start of the error message is pasted below.
this seems to be an issue with factory overwrite in datasets (see here) and numpy typing changes from
dtype[floating[Any]]
todtype[float64]
Expected Behavior
mypy passes for 3.13
Minimum acceptance criteria
Failure Information (for bugs)
Please help provide information about the failure if this is a bug.
If it is not a bug, please remove the rest of this template.
Steps to Reproduce
use python 3.13 and pre-commit
e.g.
then run
Context
Failure Logs
Checklist
The text was updated successfully, but these errors were encountered: