xBis7 commented on code in PR #68675:
URL: https://github.com/apache/airflow/pull/68675#discussion_r3429058340
##########
scripts/ci/prek/check_metrics_synced_with_the_registry.py:
##########
@@ -177,6 +187,47 @@ class MetricCall:
is_dynamic: bool
+@dataclass
+class DirectStatsImport:
+ file_path: str
+ line_num: int
+ module: str
+ imported_names: list[str]
+
+
+def _is_stats_module_path(module: str | None) -> bool:
+ return module is not None and STATS_MODULE_SUFFIX in module and
module.endswith(STATS_MODULE_SUFFIX)
Review Comment:
Yes you are right. I updated 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]