Skip to content

Commit

Permalink
fix: use base item type
Browse files Browse the repository at this point in the history
  • Loading branch information
bpiwowar committed Mar 5, 2024
1 parent e2e3c77 commit 605ed53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/datamaestro/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def update(self, record: Record, *items: Item, cls=None):
"Updating unpickled records is not recommended"
" (speed issues): use the pickle record class as the cls input"
)
itemtypes = frozenset(record.items.keys())
itemtypes = frozenset(
itemtype.__get_base__() for itemtype in record.items.keys()
)
cls = Record.fromitemtypes(itemtypes)
else:
assert (
Expand Down

0 comments on commit 605ed53

Please sign in to comment.