[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
b0dbe43867
commit
75b65b4834
1 changed files with 6 additions and 1 deletions
|
|
@ -808,7 +808,12 @@ def _same_task_timeout(timeout_s: float):
|
|||
class _SameTaskStreamingResponse(StreamingResponse):
|
||||
"""StreamingResponse without Starlette's legacy AnyIO task-group wrapper."""
|
||||
|
||||
def __init__(self, *args, unstarted_cleanup = None, **kwargs) -> None:
|
||||
def __init__(
|
||||
self,
|
||||
*args,
|
||||
unstarted_cleanup = None,
|
||||
**kwargs,
|
||||
) -> None:
|
||||
super().__init__(*args, **kwargs)
|
||||
# Async callable invoked when the client disconnects before the body
|
||||
# iterator is ever advanced. A generator that never started cannot run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue