Skip to content

Commit

Permalink
fix: remove spurious code
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Nov 28, 2022
1 parent e9c29d0 commit 3450e70
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/awkward/contents/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -1469,10 +1469,6 @@ def fields(self) -> list[str]:
def is_tuple(self) -> bool:
return self.form_cls.is_tuple.__get__(self)

@property
def dimension_optiontype(self) -> bool:
return self.form_cls.dimension_optiontype.__get__(self)

def pad_none_axis0(self, target: int, clip: bool) -> Content:
if not clip and target < self.length:
index = ak.index.Index64(
Expand Down Expand Up @@ -1679,11 +1675,11 @@ def _to_list_custom(

if overloaded:
array = ak._util.wrap(self, behavior=behavior)
out = [None] * self.length
out: list = [None] * self.length
for i in range(self.length):
out[i] = array[i]
if isinstance(out[i], (ak.highlevel.Array, ak.highlevel.Record)):
out[i] = out[i]._layout._to_list(behavior, json_conversions)
out[i] = out[i]._layout._to_list(behavior, json_conversions) # type: ignore
elif hasattr(out[i], "tolist"):
out[i] = out[i].tolist()

Expand Down

0 comments on commit 3450e70

Please sign in to comment.