Skip to content

Commit

Permalink
fix: catch missing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Sep 27, 2023
1 parent 98ab307 commit 03b777d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/awkward/forms/recordform.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,5 +311,6 @@ def __setstate__(self, state):
def _expected_from_buffers(
self, getkey: Callable[[Form, str], str], recursive: bool
) -> Iterator[tuple[str, np.dtype]]:
for content in self._contents:
yield from content._expected_from_buffers(getkey)
if recursive:
for content in self._contents:
yield from content._expected_from_buffers(getkey, recursive)
5 changes: 3 additions & 2 deletions src/awkward/forms/unionform.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,5 +299,6 @@ def _expected_from_buffers(
) -> Iterator[tuple[str, np.dtype]]:
yield (getkey(self, "tags"), index_to_dtype[self._tags])
yield (getkey(self, "index"), index_to_dtype[self._index])
for content in self._contents:
yield from content._expected_from_buffers(getkey)
if recursive:
for content in self._contents:
yield from content._expected_from_buffers(getkey, recursive)

0 comments on commit 03b777d

Please sign in to comment.