hussein-awala commented on PR #31987:
URL: https://github.com/apache/airflow/pull/31987#issuecomment-1673936424

   The static checks fail.
   
   Even the generic type didn't fix it:
   ```python
   T = TypeVar("T")
   
   class BaseTrigger(abc.ABC, LoggingMixin, Generic[T]):
       async def run(self) -> T:
           pass
   
   class Trigger1(BaseTrigger[TriggerEvent]):
       async def run(self) -> TriggerEvent:
           return event
   
   class Trigger2(BaseTrigger[AsyncIterator[TriggerEvent]]):
       async def run(self) -> AsyncIterator[TriggerEvent]:
           yield event
   ```


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

Reply via email to