Andrej730 opened a new pull request, #70580:
URL: https://github.com/apache/airflow/pull/70580

   The names (`SerializedAsset`, `SerializedAssetAlias`, `SerializedAssetBase`) 
are imported on the line right before type alias definition, so no forward 
references needed.
   
   
https://github.com/apache/airflow/blob/c04b93baaaebd7025e55b53a5bc8352a70ddbc1a/airflow-core/src/airflow/models/dag.py#L85-L89
   
   The whole block is inside `TYPE_CHECKING`, so it doesn't affect runtime in 
any way. But it will help some type checkers (e.g. pyrefly, pyright) that fail 
to detect `TYPE_CHECKING` context and flag `"SerializedAsset" | 
"SerializedAssetAlias"` as unexpected BitAnd operation between two string 
literals.
   
   
   ##### Was generative AI tooling used to co-author this PR?
   
   No
   


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