Haricharanpanjwani commented on code in PR #813:
URL: https://github.com/apache/burr/pull/813#discussion_r3567114441
##########
burr/core/action.py:
##########
@@ -1507,15 +1507,15 @@ def pydantic(
writes: List[str],
state_input_type: Type["BaseModel"],
state_output_type: Type["BaseModel"],
- stream_type: Union[Type["BaseModel"], Type[dict]],
+ stream_type: Union[Type["BaseModel"], Type[dict], object],
Review Comment:
This fixes the usability issue, but it also broadens the public type hint a
lot. Is that tradeoff intentional? We’re now depending on runtime validation
for the real constraint, so static tooling no longer gets much help from the
signature.
--
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]