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 6a225ccb2a to avoid type's mismatch durind concatenation modified to f-strings (#38412) 6a225ccb2a is described below commit 6a225ccb2a9b51c52df88368323993bcd017be0d Author: igeni <kub...@it8.ru> AuthorDate: Fri Mar 22 20:52:14 2024 +0300 to avoid type's mismatch durind concatenation modified to f-strings (#38412) --- airflow/cli/commands/info_command.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/airflow/cli/commands/info_command.py b/airflow/cli/commands/info_command.py index 2b4963179e..26e2b37bcc 100644 --- a/airflow/cli/commands/info_command.py +++ b/airflow/cli/commands/info_command.py @@ -84,7 +84,7 @@ class PiiAnonymizer(Anonymizer): def process_username(self, value) -> str: if not value: return value - return value[0] + "..." + value[-1] + return f"{value[0]}...{value[-1]}" def process_url(self, value) -> str: if not value: @@ -114,11 +114,11 @@ class PiiAnonymizer(Anonymizer): # pack if username and password and host: - netloc = username + ":" + password + "@" + host + netloc = f"{username}:{password}@{host}" elif username and host: - netloc = username + "@" + host + netloc = f"{username}@{host}" elif password and host: - netloc = ":" + password + "@" + host + netloc = f":{password}@{host}" elif host: netloc = host else: @@ -217,7 +217,7 @@ class AirflowInfo: if module is None or module == str.__class__.__module__: return o.__class__.__name__ # Avoid reporting __builtin__ else: - return module + "." + o.__class__.__name__ + return f"{module}.{o.__class__.__name__}" try: handler_names = [get_fullname(handler) for handler in logging.getLogger("airflow.task").handlers]