(self)
| 584 | """ |
| 585 | |
| 586 | def __init__(self) -> None: |
| 587 | message = ( |
| 588 | "Attempted to read or stream some content, but the content has " |
| 589 | "already been streamed. " |
| 590 | "This could be due to attempting to stream the response " |
| 591 | "content more than once." |
| 592 | "\n\n" |
| 593 | "You can fix this by manually accumulating the response content while streaming " |
| 594 | "or by calling `.read()` before starting to stream." |
| 595 | ) |
| 596 | super().__init__(message) |
| 597 | |
| 598 | |
| 599 | class ResponseContextManager(Generic[_APIResponseT]): |