Skip to content

Commit 6cdd381

Browse files
minor docs adjustments
1 parent 70a59cc commit 6cdd381

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

asyncstdlib/asynctools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,9 @@ def sync(function: Callable[..., T]) -> Callable[..., Awaitable[T]]:
332332
"""
333333
Wraps any Callable, which allows to use it as Awaitable object
334334
335-
:param function - can be any Callable
335+
:param function: can be any Callable
336336
337-
:raise TypeError if function argument is not Callable
337+
:raise TypeError: if function argument is not Callable
338338
339339
Example:
340340

docs/source/api/asynctools.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ Iterator lifetime
2323
Async transforming
2424
==================
2525

26-
.. autofunction:: sync(function: Callable[..., T]) -> Callable[..., Awaitable[T]]
26+
.. autofunction:: sync(function:(...) -> T) -> (...) -> await T
27+
:async:
28+
29+
.. versionadded:: 3.9.3
2730

2831
.. autofunction:: await_each(awaitables: iter await T)
2932
:async-for: :T

0 commit comments

Comments
 (0)