-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resulting __setitem__ layout type for ak.Record (#3372)
* fix resulting __setitem__ layout type for ak.Record * add test --------- Co-authored-by: Ianna Osborne <[email protected]>
- Loading branch information
1 parent
e5b6608
commit 6c01d57
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward/blob/main/LICENSE | ||
# ruff: noqa: E402 | ||
|
||
from __future__ import annotations | ||
|
||
import awkward as ak | ||
|
||
|
||
def test(): | ||
rec = ak.Record({"a": 1}) | ||
assert isinstance(rec.layout, ak.record.Record) | ||
|
||
rec["b"] = 2 | ||
assert isinstance(rec.layout, ak.record.Record) |