Skip to content

Tests failing - github actions pre-commit, mypy - error: "TypeAliasType" not callable #3117

@flicj191

Description

@flicj191

Tests have started failing on 22 June with:

mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

esmvalcore/preprocessor/_time.py:1773: error: "TypeAliasType" not callable  [operator]
tests/unit/preprocessor/test_shared.py:442: error: "TypeAliasType" not callable  [operator]
tests/unit/preprocessor/test_shared.py:459: error: "TypeAliasType" not callable  [operator]
Found 3 errors in 2 files (checked 625 source files)

see here
for run-tests

For np.ma.masked_array in affected files, additional dependencies for mypy have numpy

I can update the identified files.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions