Skip to content

Commit

Permalink
Wrap groupby decorator with functools.wraps
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbluca committed Nov 3, 2022
1 parent 6eddbcf commit cc64ebc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/dask_cudf/dask_cudf/groupby.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2020-2022, NVIDIA CORPORATION.

from functools import wraps
from typing import Set

import numpy as np
Expand Down Expand Up @@ -38,6 +39,7 @@ def _check_groupby_optimized(func):
reverting to the upstream Dask method
"""

@wraps(func)
def wrapper(*args, **kwargs):
gb = args[0]
if _groupby_optimized(gb):
Expand Down

0 comments on commit cc64ebc

Please sign in to comment.