Skip to content

Scheduled pre-commit fails: full-tree mypy errors in semantic-layer testing kit and mapper_test #46358

Closed

Description

@sadpandajoe

Problem

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).

Root cause

Steps to reproduce

  1. Check out master at 3565acb with mypy 1.15.0 and the mypy hook's additional_dependencies from .pre-commit-config.yaml.
  2. 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/).
  3. 17 errors in 2 files.

(Found via automated investigation — Agor.)

Activity

  1. added
    ai:fix-master
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai:fix-master🦾 ai-candidate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions