mvanhorn commented on PR #732:
URL: https://github.com/apache/burr/pull/732#issuecomment-4336598532

   Done in 5c81fc8:
   
   - Added `test_streaming_pydantic_action_union_stream_type` exercising 
`stream_type=Model1 | Model2` (PEP 604 syntax), with a `sys.version_info >= (3, 
10)` skip guard so 3.9 still passes.
   - Widened the return annotation on 
`_validate_and_extract_signature_types_streaming` to `Union[Type[dict], 
Type[pydantic.BaseModel], _UnionType]` to match the runtime values returned in 
the union case.
   
   Verified: `pytest tests/integrations/test_burr_pydantic.py`, 34 passed 
(Python 3.12).
   
   Skipped the `_UnionType` to public-name rename for now. It's imported in 
`burr/core/action.py` (declaration, type alias, and the `streaming_action` 
annotation) and re-exported in `burr/integrations/pydantic.py`, so the rename 
has wider blast radius than this PR. If you'd like, I can do that as a 
follow-up once this lands so the rename PR stays focused.
   


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