Skip to content

Commit

Permalink
refactor: more docs / change signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Nov 16, 2023
1 parent 2b5cef1 commit 66fc309
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/dask_awkward/lib/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ def from_awkward(


class _FromListsFn:
def __init__(
self, behavior: Mapping | None = None, attrs: Mapping[str, Any] | None = None
):
def __init__(self, behavior: Mapping | None, attrs: Mapping[str, Any] | None):
self.behavior = behavior
self.attrs = attrs

Expand All @@ -138,6 +136,10 @@ def from_lists(
source : list[list[Any]]
List of lists, each outer list will become a partition in the
collection.
behavior : dict, optional
Custom ak.behavior for the output array.
attrs : mapping, optional
Custom attributes for the output array.
Returns
-------
Expand Down Expand Up @@ -545,6 +547,8 @@ def from_map(
number of partitions in the output collection (only one
element of each iterable will be passed to `func` for each
partition).
args : tuple
Tuple of positional arguments to append after mapped arguments.
label : str, optional
String to use as the function-name label in the output
collection-key names.
Expand Down

0 comments on commit 66fc309

Please sign in to comment.