Skip to content

fix: better generic support in document array stack #1147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Feb 20, 2023
Prev Previous commit
Next Next commit
fix: fix sized problem
Signed-off-by: samsja <sami.jaghouar@hotmail.fr>
  • Loading branch information
samsja committed Feb 17, 2023
commit c3482b8538eada9c8b9c152067d792e5bba1a37e
7 changes: 5 additions & 2 deletions docarray/array/array/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
Generator,
Iterable,
Optional,
Sized,
Tuple,
Type,
TypeVar,
Expand Down Expand Up @@ -81,10 +80,14 @@ def __getitem__(self, item: slice):
return self.content[item]


class IOMixinArray(Iterable[BaseDocument], Sized):
class IOMixinArray(Iterable[BaseDocument]):

document_type: Type[BaseDocument]

@abstractmethod
def __len__(self):
...

@abstractmethod
def __init__(
self,
Expand Down