PyroFork: Fix docs

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2023-06-24 00:33:11 +07:00
parent ebc23eb4bf
commit 9a6c4e8629
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5
2 changed files with 14 additions and 13 deletions

View file

@ -1,8 +1,7 @@
sphinx
sphinx==6.2.1
sphinx_rtd_theme==1.2.2
sphinx-rtd-dark-mode
sphinx_copybutton
sphinx-autobuild
tgcrypto
sphinx-autobuild
sphinx-rtd-dark-mode==1.2.4
sphinx_copybutton==0.5.2
sphinx-autobuild==2021.3.14
tgcrypto==1.2.5
tornado>=6.3.2 # not directly required, pinned by Snyk to avoid a vulnerability

View file

@ -24,18 +24,20 @@ class RunSync:
Result = TypeVar("Result")
async def run_sync(self, func: Callable[..., Result], *args: Any, **kwargs: Any) -> Result:
"""
Runs the given sync function (optionally with arguments) on a separate thread.
"""Runs the given sync function (optionally with arguments) on a separate thread.
Parameters:
Parameters:
func (``Callable``):
Sync function to run.
*args (``any``, *optional*):
\\*args (``any``, *optional*):
Function argument.
**kwargs (``any``, *optional*):
\\*\\*kwargs (``any``, *optional*):
Function extras arguments.
Returns:
``any``: The function result.
"""
return await utils.run_sync(func, *args, **kwargs)