version increment; clarified TODO issue

This commit is contained in:
Daniil Fajnberg 2021-11-28 19:46:11 +01:00
parent aee9c96fa5
commit 8faa0f275d
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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'):
"""