Open hussein-awala opened 10 months ago
Shouldn't this
def run_with_advanced_retry(self, _retry_args: dict[Any, Any], *args: Any, **kwargs: Any) -> Any:
self._retry_obj = tenacity.Retrying(**_retry_args)
return self._retry_obj(self.run, *args, **kwargs)
rather be this
def run_with_advanced_retry(self, _retry_args: dict[Any, Any], *args: Any, **kwargs: Any) -> Any:
self._retry_obj = tenacity.Retrying(**_retry_args)
return self._retry_obj(self.run)(*args, **kwargs)
? :)
@rudolfbyker I tested it and still have the same issue:
airflow/providers/http/hooks/http.py:261: error: Never not callable [misc]
return self._retry_obj(self.run)(*args, **kwargs)
^~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in 1 file (checked 1 source file)
Error 1 returned
I'm trying to update MyPy version in Airflow to 1.8.0, but I'm getting a strange error when I run it on this code:
The error is the following: