Skip to content

Commit

Permalink
Fix altrep attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
trossi committed Oct 2, 2024
1 parent 5166258 commit 0afed10
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rdata/parser/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,11 +937,16 @@ def parse_R_object( # noqa: N802, C901, PLR0912, PLR0915
)

if self.expand_altrep:
is_object = info.object
info, value = self.expand_altrep_to_object(
info=altrep_info,
state=altrep_state,
)
attributes = altrep_attr
if altrep_attr.info.type != RObjectType.NILVALUE:
info.object = is_object
info.attributes = True
attributes_read = True
attributes = altrep_attr
else:
value = (altrep_info, altrep_state, altrep_attr)

Expand Down

0 comments on commit 0afed10

Please sign in to comment.