version increment; clarified TODO issue
This commit is contained in:
@ -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'):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user