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

potiuk 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 bd12003e24f Switch to termcolor 3 (#48583)
bd12003e24f is described below

commit bd12003e24f407e6f3fc224ee3da76931e3b6ee4
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Mar 31 16:32:58 2025 +0200

    Switch to termcolor 3 (#48583)
    
    Termcolor 3 released an hour ago broke our mypy - as they removed
    Color constant and change to plain string everywhere where color
    is used - likely to allow more than literal strings defined
    as "basic" colors.
    
    That should fix it.
---
 airflow-core/pyproject.toml                                 | 2 +-
 airflow-core/src/airflow/cli/commands/standalone_command.py | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/airflow-core/pyproject.toml b/airflow-core/pyproject.toml
index c11e69ae046..54a9dd1b3a6 100644
--- a/airflow-core/pyproject.toml
+++ b/airflow-core/pyproject.toml
@@ -127,7 +127,7 @@ dependencies = [
     "svcs>=25.1.0",
     "tabulate>=0.7.5",
     "tenacity>=8.0.0,!=8.2.0",
-    "termcolor>=2.5.0",
+    "termcolor>=3.0.0",
     # Universal Pathlib 0.2.4 adds extra validation for Paths and our 
integration with local file paths
     # Does not work with it Tracked in 
https://github.com/fsspec/universal_pathlib/issues/276
     "universal-pathlib>=0.2.2,!=0.2.4",
diff --git a/airflow-core/src/airflow/cli/commands/standalone_command.py 
b/airflow-core/src/airflow/cli/commands/standalone_command.py
index 3e89b8f14fe..d1cf3a99221 100644
--- a/airflow-core/src/airflow/cli/commands/standalone_command.py
+++ b/airflow-core/src/airflow/cli/commands/standalone_command.py
@@ -39,8 +39,6 @@ from airflow.utils import db
 from airflow.utils.providers_configuration_loader import 
providers_configuration_loaded
 
 if TYPE_CHECKING:
-    from termcolor.termcolor import Color
-
     from airflow.jobs.base_job_runner import BaseJobRunner
 
 
@@ -144,7 +142,7 @@ class StandaloneCommand:
 
         You can pass multiple lines to output if you wish; it will be split 
for you.
         """
-        color: dict[str, Color] = {
+        color: dict[str, str] = {
             "api-server": "magenta",
             "scheduler": "blue",
             "dag-processor": "yellow",

Reply via email to