You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "github-actions[bot] (via GitHub)" <gi...@apache.org> on 2026/10/18 08:35:20 UTC

[PR] [v3-4-test] Fix Lang-SDK decoder typing for pydantic 2.14 TypeForm signature (#74628) [airflow]

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 <65...@users.noreply.github.com>


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


Re: [PR] [v3-4-test] Fix Lang-SDK decoder typing for pydantic 2.14 TypeForm signature (#74628) [airflow]

Posted by "vatsrahul1001 (via GitHub)" <gi...@apache.org>.
vatsrahul1001 merged PR #74970:
URL: https://github.com/apache/airflow/pull/74970


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