From 8faa0f275d84425494300dbac2a33c4459344507 Mon Sep 17 00:00:00 2001 From: Daniil Fajnberg Date: Sun, 28 Nov 2021 19:46:11 +0100 Subject: [PATCH] version increment; clarified TODO issue --- setup.cfg | 2 +- src/webutils/util.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index 1cd9199..7f2cfc1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = webutils-df -version = 0.0.1 +version = 0.0.2 author = Daniil F. author_email = mail@placeholder123.to description = Miscellaneous web utilities diff --git a/src/webutils/util.py b/src/webutils/util.py index 2f08fa0..5fb4240 100644 --- a/src/webutils/util.py +++ b/src/webutils/util.py @@ -15,9 +15,9 @@ def _get_param_idx_and_default(function: Callable, param_name: str) -> Tuple[int return list(params.keys()).index(param_name), params[param_name].default -# TODO: Figure out why PyCharm does not produce type hints to a function decorated with this, -# when used without parentheses (like @in_async_session instead of @in_async_session()), -# as soon as the `Callable` return type is added to the signature. +# TODO: Figure out why PyCharm does not produce type hints to a function decorated in this manner, +# when using the decorator without parentheses (e.g. @in_async_session instead of @in_async_session() +# in this case), as soon as the `Callable` return type is added to that decorator's signature. def in_async_session(_func: Callable = None, *, session_kwargs: Dict[str, Any] = None, session_param_name: str = 'session'): """