This is an automated email from the ASF dual-hosted git repository.

gopidesu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 67d6e4b1e53 Bump mypy to 1.16.1 (#52997)
67d6e4b1e53 is described below

commit 67d6e4b1e53182881659d3064db8935577507055
Author: GPK <[email protected]>
AuthorDate: Fri Jul 11 19:41:40 2025 +0100

    Bump mypy to 1.16.1 (#52997)
    
    * Bump mypy to 1.16.1
    
    * Bump mypy to 1.16.1 and fix core mypy errors
    
    * Bump mypy to 1.16.1 and fix core mypy errors
    
    * Remove ParsedLog casting
---
 airflow-core/src/airflow/utils/log/file_task_handler.py | 2 --
 devel-common/pyproject.toml                             | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/airflow-core/src/airflow/utils/log/file_task_handler.py 
b/airflow-core/src/airflow/utils/log/file_task_handler.py
index 459548efd1e..24580d768ff 100644
--- a/airflow-core/src/airflow/utils/log/file_task_handler.py
+++ b/airflow-core/src/airflow/utils/log/file_task_handler.py
@@ -318,8 +318,6 @@ def _add_log_from_parsed_log_streams_to_heap(
                 log_stream_to_remove = []
             log_stream_to_remove.append(idx)
             continue
-        # add type hint to avoid mypy error
-        record = cast("ParsedLog", record)
         timestamp, line_num, line = record
         # take int as sort key to avoid overhead of memory usage
         heapq.heappush(heap, (_create_sort_key(timestamp, line_num), line))
diff --git a/devel-common/pyproject.toml b/devel-common/pyproject.toml
index 1a37f7cafcf..5c41e5785f4 100644
--- a/devel-common/pyproject.toml
+++ b/devel-common/pyproject.toml
@@ -103,7 +103,7 @@ dependencies = [
     # TODO: upgrade to newer versions of MyPy continuously as they are released
     # Make sure to upgrade the mypy version in update-common-sql-api-stubs in 
.pre-commit-config.yaml
     # when you upgrade it here !!!!
-    "mypy==1.9.0",
+    "mypy==1.16.1",
     "types-Deprecated>=1.2.9.20240311",
     "types-Markdown>=3.6.0.20240316",
     "types-PyMySQL>=1.1.0.20240425",

Reply via email to