sanju1198 commented on code in PR #57497:
URL: https://github.com/apache/airflow/pull/57497#discussion_r2476256549


##########
scripts/ci/prek/mypy_folder.py:
##########
@@ -116,7 +116,8 @@ def get_all_files(folder: str) -> list[str]:
         ) and not 
file.as_posix().endswith("src/airflow/providers/__init__.py"):
             
files_to_check.append(file.relative_to(AIRFLOW_ROOT_PATH).as_posix())
     file_spec = "@/files/mypy_files.txt"
-    console.print(f"[info]Running mypy with {file_spec}")
+    if console:

Review Comment:
   Thanks @uranusjr and @potiuk! I've pushed the new commit with the print() 
fallback as suggested.
   
   P.S. I also found and fixed one more console.print crash that was in the 
same file.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to