github-actions[bot] opened a new pull request, #74970:
URL: https://github.com/apache/airflow/pull/74970

   pydantic 2.14 types TypeAdapter's argument as TypeForm[T], so mypy
   rejects the Lang-SDK decoder built from get_args(ToManager)[0], which
   is not a static type expression.
   
   Name the ToManager message union ToManagerMessage and build the
   Lang-SDK message type LangSDKToManager from it; the runtime union is
   the same object as before. Declare each concrete processor's decoder
   with its own precise TypeAdapter type instead of on
   BaseDagFileProcessorProcess: TypeAdapter is invariant, so the Lang-SDK
   decoder, which accepts a superset of ToManager, cannot override a base
   TypeAdapter[ToManager].
   (cherry picked from commit bbf2c5b1c476ffb66267b0c1b9b8aa0f22d02b1f)
   
   Co-authored-by: Dev-iL <[email protected]>


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