Skip to content

Commit 666faaf

Browse files
committed
Fix mypy override error in Variable session test fixture
1 parent 132a1e9 commit 666faaf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎airflow-core/tests/unit/models/test_variable.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
class _SessionUnawareMetastoreBackend(MetastoreBackend):
4646
"""A custom backend whose ``get_variable`` override predates the ``session`` keyword."""
4747

48-
def get_variable(self, key: str, team_name: str | None = None) -> str | None:
48+
# The signature mismatch with the base class is the point of this fixture, so mypy's
49+
# override check has to be waived here rather than fixed.
50+
def get_variable(self, key: str, team_name: str | None = None) -> str | None: # type: ignore[override]
4951
return "from_subclass"
5052

5153

0 commit comments

Comments
 (0)