| 369 | |
| 370 | |
| 371 | class MissingStreamClassError(TypeError): |
| 372 | def __init__(self) -> None: |
| 373 | super().__init__( |
| 374 | "The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `anthropic._streaming` for reference", |
| 375 | ) |
| 376 | |
| 377 | |
| 378 | def to_raw_response_wrapper(func: Callable[P, R]) -> Callable[P, LegacyAPIResponse[R]]: |