Skip to content

Commit

Permalink
Update src/dask_awkward/lib/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Angus Hollands <goosey15@gmail.com>
  • Loading branch information
douglasdavis and agoose77 authored Oct 9, 2023
1 parent a9d124b commit 83a427f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dask_awkward/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ def render_buffer_key(form: Form, form_key: str, attribute: str) -> str:
return f"{form_key}-{attribute}"


def parse_buffer_key(buffer_key: str) -> list[str]:
return buffer_key.rsplit("-", maxsplit=1)
def parse_buffer_key(buffer_key: str) -> tuple[str, str]:
head, tail = buffer_key.rsplit("-", maxsplit=1)
return head, tail


def form_with_unique_keys(form: Form, key: str) -> Form:
Expand Down

0 comments on commit 83a427f

Please sign in to comment.