diff --git a/devel-common/pyproject.toml b/devel-common/pyproject.toml index d15142e003af2..8ad2311ea6db2 100644 --- a/devel-common/pyproject.toml +++ b/devel-common/pyproject.toml @@ -99,7 +99,7 @@ dependencies = [ "mypy" = [ # Mypy dependencies # TODO: upgrade to newer versions of MyPy continuously as they are released - "mypy==1.17.1", + "mypy==1.18.1", "types-Deprecated>=1.2.9.20240311", "types-Markdown>=3.6.0.20240316", "types-PyMySQL>=1.1.0.20240425", diff --git a/providers/common/compat/src/airflow/providers/common/compat/lineage/entities.py b/providers/common/compat/src/airflow/providers/common/compat/lineage/entities.py index 0601fa4c713cd..74023f4ddbada 100644 --- a/providers/common/compat/src/airflow/providers/common/compat/lineage/entities.py +++ b/providers/common/compat/src/airflow/providers/common/compat/lineage/entities.py @@ -28,7 +28,7 @@ class File: """File entity. Refers to a file.""" - template_fields: ClassVar = ("url",) + template_fields: ClassVar[tuple[str, ...]] = ("url",) url: str = attr.ib() type_hint: str | None = None diff --git a/providers/google/tests/unit/google/cloud/sensors/test_dataproc_metastore.py b/providers/google/tests/unit/google/cloud/sensors/test_dataproc_metastore.py index 1933e1a185996..5edc986c714cc 100644 --- a/providers/google/tests/unit/google/cloud/sensors/test_dataproc_metastore.py +++ b/providers/google/tests/unit/google/cloud/sensors/test_dataproc_metastore.py @@ -41,8 +41,8 @@ } MANIFEST_FAIL = {"status": {"code": 1, "message": "Bad things happened", "details": []}, "filenames": []} RESULT_FILE_CONTENT: dict[str, Any] = {"rows": [], "metadata": {}} -ROW_1 = [] -ROW_2 = [] +ROW_1: list[Any] = [] +ROW_2: list[Any] = [] TEST_SERVICE_ID = "test-service" TEST_REGION = "test-region" TEST_TABLE = "test_table" diff --git a/providers/papermill/src/airflow/providers/papermill/operators/papermill.py b/providers/papermill/src/airflow/providers/papermill/operators/papermill.py index e02f259b60475..62a17935192d8 100644 --- a/providers/papermill/src/airflow/providers/papermill/operators/papermill.py +++ b/providers/papermill/src/airflow/providers/papermill/operators/papermill.py @@ -17,7 +17,7 @@ # under the License. from __future__ import annotations -from collections.abc import Collection, Sequence +from collections.abc import Sequence from functools import cached_property from typing import TYPE_CHECKING, ClassVar @@ -41,7 +41,7 @@ class NoteBook(File): """Jupyter notebook.""" - template_fields: ClassVar[Collection[str]] = {"parameters", *File.template_fields} + template_fields: ClassVar[tuple[str, ...]] = ("parameters", *File.template_fields) type_hint: str | None = "jupyter_notebook" parameters: dict | None = {}