Skip to content

Commit

Permalink
feat!: remove protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 8, 2023
1 parent 16b5189 commit 395879b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/dask_awkward/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
necessary_columns = report_necessary_columns # Export for backwards compatibility.

from dask_awkward.lib.io.io import (
ImplementsFormTransformation,
from_awkward,
from_dask_array,
from_delayed,
Expand Down
1 change: 0 additions & 1 deletion src/dask_awkward/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
sample,
)
from dask_awkward.lib.io.io import (
ImplementsFormTransformation,
from_awkward,
from_dask_array,
from_delayed,
Expand Down
19 changes: 0 additions & 19 deletions src/dask_awkward/lib/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,6 @@
from dask_awkward.lib.core import Array


class ImplementsFormTransformation(Protocol):
behavior: dict | None

def __call__(self, form: ak.form.Form, docstr: str | None) -> ak.form.Form:
raise NotImplementedError

def extract_form_keys_base_columns(self, form_keys: Iterable[str]) -> Iterable[str]:
raise NotImplementedError

def create_column_mapping_and_key(
self,
column_source: Any,
start: int,
stop: int,
**kwargs: Any,
) -> tuple[Mapping[str, ak.Array], Callable[[str, ak.forms.Form, str], str] | str]:
raise NotImplementedError


class _FromAwkwardFn:
def __init__(self, arr: ak.Array) -> None:
self.arr = arr
Expand Down

0 comments on commit 395879b

Please sign in to comment.