Dev-iL commented on code in PR #56944: URL: https://github.com/apache/airflow/pull/56944#discussion_r2448251487
########## airflow-core/src/airflow/api_fastapi/core_api/services/ui/calendar.py: ########## @@ -40,6 +40,12 @@ from airflow.timetables.base import DataInterval, TimeRestriction from airflow.timetables.simple import ContinuousTimetable +TYPE_CHECKING: bool = False +if TYPE_CHECKING: Review Comment: Ah this is an optimization for those cases when importing (from) the `typing` module itself is undesired (e.g. too heavy). Not sure where I saw this approach, but as you can see it's common enough for mypy & ruff to allow it. -- 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]
