mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 10:52:30 +00:00
chore: fix ruff errors generated by new pre-commit hook
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
parent
562e4e54fb
commit
261362799b
2 changed files with 3 additions and 8 deletions
|
|
@ -6,12 +6,9 @@
|
|||
|
||||
from collections.abc import AsyncGenerator
|
||||
from contextvars import ContextVar
|
||||
from typing import TypeVar
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
def preserve_contexts_async_generator(
|
||||
def preserve_contexts_async_generator[T](
|
||||
gen: AsyncGenerator[T, None], context_vars: list[ContextVar]
|
||||
) -> AsyncGenerator[T, None]:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue