Skip to content

Commit

Permalink
Fix docstring for _make_parser_func, fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
vnlitvinov committed Aug 4, 2023
1 parent 1d0b19a commit 9d8e8bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions modin/experimental/pandas/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def _make_parser_func(sep: str, funcname: str) -> Callable:
----------
sep : str
The separator default to use for the parser.
funcname : str
The name of the generated parser function.
Returns
-------
Expand Down
4 changes: 2 additions & 2 deletions modin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,9 @@ def expanduser_path_arg(argname: str) -> Callable[[Fn], Fn]:
Decorator which performs the replacement.
"""

def decorator(func):
def decorator(func: Callable) -> Callable:
@functools.wraps(func)
def wrapped(*_args, **_kw):
def wrapped(*_args: Any, **_kw: Any) -> Any:
kwargs = dict(locals())
kwargs.pop("_args", None)
kwargs.pop("_kw", None)
Expand Down

0 comments on commit 9d8e8bf

Please sign in to comment.