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
{{ message }}
Repository navigation
Scheduled pre-commit fails: full-tree mypy errors in semantic-layer testing kit and mapper_test #46358
The scheduled pre-commit checks run fails in the mypy (main) hook with Found 17 errors in 2 files: one arg-type error in superset-core/src/superset_core/semantic_layers/testing.py:142 (min key Callable[[Dimension], ...] vs expected Callable[[Dimension | None], ...]), and 16 errors in tests/unit_tests/semantic_layers/mapper_test.py (lines 5677-5679, 5823-5824, 5974-5976: len() on set[Filter | OrFilter] | None, union-attr on OrFilter.column/.value, None has no .id/__iter__). First failing run: https://github.com/apache/superset/actions/runs/44470816014 (master 3565acb).
Per-PR runs miss both because pyproject.toml:409-411 sets follow_imports = "skip" for superset_core.*, so those types are Any unless superset-core is in the mypy inputs, as in the full-tree run.
Steps to reproduce
Check out master at 3565acb with mypy 1.15.0 and the mypy hook's additional_dependencies from .pre-commit-config.yaml.
Run pre-commit run mypy --all-files (or mypy --check-untyped-defs over every tracked *.py/*.pyi except superset-extensions-cli/ and tests/mypy_fixtures/).
Activity