diff --git a/docs/requirements.txt b/docs/requirements.txt index bc739c81..0a428d7c 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -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 diff --git a/pyrogram/methods/utilities/run_sync.py b/pyrogram/methods/utilities/run_sync.py index 1c446cb1..fbd1deb1 100755 --- a/pyrogram/methods/utilities/run_sync.py +++ b/pyrogram/methods/utilities/run_sync.py @@ -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)