Skip to content

Commit

Permalink
these properties are already defined exactly like this in the RecordM…
Browse files Browse the repository at this point in the history
…eta baseclass (#3360)
  • Loading branch information
pfackeldey authored Jan 7, 2025
1 parent 19ffb38 commit c51c58c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/awkward/contents/recordarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,6 @@ def __init__(
self._length = length
self._init(parameters, backend)

@property
def fields(self) -> list[str]:
if self._fields is None:
return [str(i) for i in range(len(self._contents))]
else:
return self._fields

form_cls: Final = RecordForm

def copy(
Expand Down Expand Up @@ -298,10 +291,6 @@ def simplified(
):
return cls(contents, fields, length, parameters=parameters, backend=backend)

@property
def is_tuple(self) -> bool:
return self._fields is None

def to_tuple(self) -> Self:
return RecordArray(
self._contents, None, self._length, parameters=None, backend=self._backend
Expand Down

0 comments on commit c51c58c

Please sign in to comment.