Ghraven commented on PR #813: URL: https://github.com/apache/burr/pull/813#issuecomment-4761811312
Thanks for picking this up and for writing out the investigation so clearly. One small thought from my earlier pass on this issue: adding object to the union does make the type checker accept union values, but it also effectively widens stream_type to almost any value. That may still be the pragmatic choice here, but maintainers may prefer either a more explicit alias/comment around why the parameter is intentionally broad, or a small runtime/type-helper path that recognizes union forms while keeping the public intent narrow. The focused tests for both yping.Union[...] and ModelA | ModelB look useful. Thanks again for moving this forward. -- 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]
