mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-31 00:29:57 +00:00
unused-ignore
This commit is contained in:
parent
da536abde6
commit
a5cecf77f0
@ -246,7 +246,7 @@ def shielded(func: Func) -> Func:
|
|||||||
# For older versions, fallback to original behavior
|
# For older versions, fallback to original behavior
|
||||||
try:
|
try:
|
||||||
# Create a task with the captured context to preserve context variables
|
# Create a task with the captured context to preserve context variables
|
||||||
task = asyncio.create_task(coro, context=ctx) # type: ignore[call-arg]
|
task = asyncio.create_task(coro, context=ctx) # type: ignore[call-arg, unused-ignore]
|
||||||
# `call-arg` used to not fail 3.9 or 3.10 tests
|
# `call-arg` used to not fail 3.9 or 3.10 tests
|
||||||
return await asyncio.shield(task)
|
return await asyncio.shield(task)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
Loading…
Reference in New Issue
Block a user