tirkarthi commented on issue #58983: URL: https://github.com/apache/airflow/issues/58983#issuecomment-3605343926
This seems to be related to https://github.com/fastapi/fastapi/pull/14434 . The wrapped call is validated to be a coroutine. Adding print statements in the PR yields below results where there is a difference in behavior related to the function being a coroutine or not. After the fastapi PR the `__wrapped__` part is validated for coroutine check. ``` iscoroutinefunction(dependant.call) = True iscoroutinefunction(dependant._unwrapped_call) = False dependant.is_coroutine_callable = False dependant._unwrapped_call = <function ti_run at 0x7f3e1fe7f880> dependant.call = <function ti_run at 0x7f3e1df48220> inspect.isroutine(dependant._unwrapped_call) = True dir(dependant.call) = ['__annotations__', '__builtins__', '__call__', '__class__', '__closure__', '__code__', '__defaults__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__get__', '__getattribute__', '__getstate__', '__globals__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__kwdefaults__', '__le__', '__lt__', '__module__', '__name__', '__ne__', '__new__', '__qualname__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__signature__', '__sizeof__', '__str__', '__subclasshook__', '__wrapped__', '_original_callable'] dir(dependant._unwrapped_call) = ['__annotations__', '__builtins__', '__call__', '__class__', '__closure__', '__code__', '__defaults__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__get__', '__getattribute__', '__getstate__', '__globals__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__kwdefaults__', '__le__', '__lt__', '__module__', '__name__', '__ne__', '__new__', '__qualname__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__'] dependant.call.__wrapped__ = <cadwyn.schema_generation._CallableWrapper object at 0x7f3e1ef59350> ``` -- 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]
