mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04: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_theme==1.2.2
|
||||||
sphinx-rtd-dark-mode
|
sphinx-rtd-dark-mode==1.2.4
|
||||||
sphinx_copybutton
|
sphinx_copybutton==0.5.2
|
||||||
sphinx-autobuild
|
sphinx-autobuild==2021.3.14
|
||||||
tgcrypto
|
tgcrypto==1.2.5
|
||||||
sphinx-autobuild
|
|
||||||
tornado>=6.3.2 # not directly required, pinned by Snyk to avoid a vulnerability
|
tornado>=6.3.2 # not directly required, pinned by Snyk to avoid a vulnerability
|
||||||
|
|
|
||||||
|
|
@ -24,18 +24,20 @@ class RunSync:
|
||||||
Result = TypeVar("Result")
|
Result = TypeVar("Result")
|
||||||
|
|
||||||
async def run_sync(self, func: Callable[..., Result], *args: Any, **kwargs: Any) -> 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``):
|
func (``Callable``):
|
||||||
Sync function to run.
|
Sync function to run.
|
||||||
|
|
||||||
*args (``any``, *optional*):
|
\\*args (``any``, *optional*):
|
||||||
Function argument.
|
Function argument.
|
||||||
|
|
||||||
**kwargs (``any``, *optional*):
|
\\*\\*kwargs (``any``, *optional*):
|
||||||
Function extras arguments.
|
Function extras arguments.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
``any``: The function result.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return await utils.run_sync(func, *args, **kwargs)
|
return await utils.run_sync(func, *args, **kwargs)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue