Skip to content

Commit 0d8cd1e

Browse files
docstring typo fixes; more precise return type hint
1 parent 3423033 commit 0d8cd1e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/dbally/context/_utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from inspect import isclass
2-
from typing import Any, Optional, Sequence, Tuple, Type, Union
2+
from typing import Any, Optional, Sequence, List, Tuple, Type, Union
33

44
import typing_extensions as type_ext
55

@@ -11,11 +11,11 @@
1111

1212
def _extract_params_and_context(
1313
filter_method_: type_ext.Callable, hidden_args: Sequence[str]
14-
) -> Tuple[Sequence[MethodParamWithTyping], ContextClass]:
14+
) -> Tuple[List[MethodParamWithTyping], ContextClass]:
1515
"""
16-
Processes the MethodsBaseView filter method signauture to extract the args and type hints in the desired format.
17-
Context claases are getting excluded the returned MethodParamWithTyping list. Only the first BaseCallerContext
18-
class is returned.
16+
Processes the MethodsBaseView filter method signature to extract the argument names and type hint
17+
in the form of MethodParamWithTyping list. Additionally, the first type hint, pointing to the subclass
18+
of BaseCallerContext is returned.
1919
2020
Args:
2121
filter_method_: MethodsBaseView filter method (annotated with @decorators.view_filter() decorator)

0 commit comments

Comments
 (0)