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 ee5714b1733 Fix airflowctl test type mapping (#55488)
ee5714b1733 is described below
commit ee5714b173340a3cdc66f449941aa0ff1672d979
Author: GPK <[email protected]>
AuthorDate: Thu Sep 11 03:29:44 2025 +0100
Fix airflowctl test type mapping (#55488)
---
airflow-ctl/src/airflowctl/ctl/cli_config.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/airflow-ctl/src/airflowctl/ctl/cli_config.py
b/airflow-ctl/src/airflowctl/ctl/cli_config.py
index a4212ceef15..ae1e8bcb755 100644
--- a/airflow-ctl/src/airflowctl/ctl/cli_config.py
+++ b/airflow-ctl/src/airflowctl/ctl/cli_config.py
@@ -468,12 +468,13 @@ class CommandFactory:
"tuple": tuple,
"set": set,
"datetime.datetime": parsedate,
+ "dict[str, typing.Any]": dict,
}
# Default to ``str`` to preserve previous behaviour for any
unrecognised
# type names while still allowing the CLI to function.
if isinstance(type_name, type):
type_name = type_name.__name__
- return mapping.get(type_name, str)
+ return mapping.get(str(type_name), str)
@staticmethod
def _create_arg(