You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ashb (via GitHub)" <gi...@apache.org> on 2023/05/12 13:58:31 UTC
[GitHub] [airflow] ashb commented on pull request #31240: Better typing for Job and JobRunners
ashb commented on PR #31240:
URL: https://github.com/apache/airflow/pull/31240#issuecomment-1545793364
@potiuk Might using a protocol here be a fix? Rather than trying to say JobOrJobPydantic, define a Protocol that has the type we need, which I think might be just this:
```python
class JobProtocol(Protocol):
job_type: str
```
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org