We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7db0e4 commit e668396Copy full SHA for e668396
src/trio/_core/_run.py
@@ -2184,8 +2184,8 @@ def setup_runner(
2184
2185
2186
def run(
2187
- async_fn: Callable[..., Awaitable[RetT]],
2188
- *args: object,
+ async_fn: Callable[[Unpack[PosArgT]], Awaitable[RetT]],
+ *args: Unpack[PosArgT],
2189
clock: Clock | None = None,
2190
instruments: Sequence[Instrument] = (),
2191
restrict_keyboard_interrupt_to_checkpoints: bool = False,
src/trio/_core/_tests/test_run.py
@@ -76,7 +76,7 @@ async def trivial(x: T) -> T:
76
77
with pytest.raises(TypeError):
78
# Missing an argument
79
- _core.run(trivial)
+ _core.run(trivial) # type: ignore[arg-type]
80
81
82
# Not an async function
0 commit comments