mik-laj commented on a change in pull request #9729:
URL: https://github.com/apache/airflow/pull/9729#discussion_r451865773



##########
File path: airflow/utils/decorators.py
##########
@@ -21,13 +21,14 @@
 import os
 from copy import copy
 from functools import wraps
+from typing import Any, Callable, Dict
 
 from airflow.exceptions import AirflowException
 
 signature = inspect.signature
 
 
-def apply_defaults(func):
+def apply_defaults(func: Callable[..., Any]) -> Any:

Review comment:
       This is a bigger challenge. mypy is not too smart to handle this 
decorator correctly. Please look at: 
   https://github.com/apache/airflow/pull/8145
   https://github.com/apache/airflow/tree/master/airflow/mypy
   https://github.com/python/mypy/issues/3157




----------------------------------------------------------------
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]


Reply via email to