Skip to content

Commit

Permalink
Fix type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed May 7, 2024
1 parent ea66192 commit 53994e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/cudf/cudf/pandas/fast_slow_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ def _replace_closurevars(
f: types.FunctionType,
attribute_name: Literal["_fsproxy_slow", "_fsproxy_fast"],
seen: Set[int],
) -> types.FunctionType:
) -> Callable[..., Any]:
"""
Return a copy of `f` with its closure variables replaced with
their corresponding slow (or fast) types.
Expand Down Expand Up @@ -1133,12 +1133,11 @@ def _replace_closurevars(
argdefs=f.__defaults__,
closure=g_closure,
)
g = functools.update_wrapper(
return functools.update_wrapper(
g,
f,
assigned=functools.WRAPPER_ASSIGNMENTS + ("__kwdefaults__",),
)
return g


_SPECIAL_METHODS: Set[str] = {
Expand Down

0 comments on commit 53994e7

Please sign in to comment.