mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
PyroFork: Fix docs
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
ebc23eb4bf
commit
9a6c4e8629
2 changed files with 14 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue