mik-laj commented on a change in pull request #9783:
URL: https://github.com/apache/airflow/pull/9783#discussion_r453349286
##########
File path: airflow/stats.py
##########
@@ -255,5 +255,8 @@ def get_constant_tags(self):
return tags
-class Stats(metaclass=_Stats): # noqa: D101
- pass
+if TYPE_CHECKING:
+ Stats: StatsLogger
Review comment:
Here we have magic with metaclasses, which is not very liked by mypy.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]