Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into fix-double-subscriptable
Signed-off-by: Joan Fontanals <[email protected]>
  • Loading branch information
Joan Fontanals authored Sep 27, 2023
commit fb71c56e0cf4debdc8e1ba043e46d895522d3153
2 changes: 1 addition & 1 deletion docarray/array/doc_list/doc_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def __getitem__(self, item):
return super().__getitem__(item)

@classmethod
def __class_getitem__(cls, item: Union[Type[BaseDoc], TypeVar, str]):
def __class_getitem__(cls, item: Union[Type[BaseDocWithoutId], TypeVar, str]):
if cls.doc_type != AnyDoc:
raise TypeError(f'{cls} object is not subscriptable')

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.