Skip to content

Commit

Permalink
pop and warn
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis committed Nov 16, 2023
1 parent 5e8cc37 commit c11b57b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dask_awkward/lib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1744,6 +1744,14 @@ def map_partitions(
This is effectively the same as `d = c * a`
"""
opt_touch_all = kwargs.pop("opt_touch_all", None)
if opt_touch_all is not None:
warnings.warn(
"The opt_touch_all argument does nothing.\n"
"This warning will be removed in a future version of dask-awkward "
"and the function call will likely fail."
)

token = token or tokenize(base_fn, *args, meta, **kwargs)
label = hyphenize(label or funcname(base_fn))
name = f"{label}-{token}"
Expand Down

0 comments on commit c11b57b

Please sign in to comment.