docarray
Advanced tools
@@ -1,2 +0,2 @@ | ||
| __version__ = '0.39.2.dev8' | ||
| __version__ = '0.39.2.dev9' | ||
@@ -3,0 +3,0 @@ import logging |
@@ -0,1 +1,2 @@ | ||
| import sys | ||
| import random | ||
@@ -32,2 +33,5 @@ from abc import abstractmethod | ||
| if sys.version_info >= (3, 12): | ||
| from types import GenericAlias | ||
| T = TypeVar('T', bound='AnyDocArray') | ||
@@ -55,4 +59,8 @@ T_doc = TypeVar('T_doc', bound=BaseDocWithoutId) | ||
| if not isinstance(item, type): | ||
| return Generic.__class_getitem__.__func__(cls, item) # type: ignore | ||
| # this do nothing that checking that item is valid type var or str | ||
| if sys.version_info < (3, 12): | ||
| return Generic.__class_getitem__.__func__(cls, item) # type: ignore | ||
| # this do nothing that checking that item is valid type var or str | ||
| # Keep the approach in #1147 to be compatible with lower versions of Python. | ||
| else: | ||
| return GenericAlias(cls, item) # type: ignore | ||
| if not safe_issubclass(item, BaseDocWithoutId): | ||
@@ -59,0 +67,0 @@ raise ValueError( |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: docarray | ||
| Version: 0.39.2.dev8 | ||
| Version: 0.39.2.dev9 | ||
| Summary: The data structure for multimodal data | ||
@@ -5,0 +5,0 @@ Home-page: https://docs.docarray.org/ |
+1
-1
| [tool.poetry] | ||
| name = "docarray" | ||
| version = '0.39.2.dev8' | ||
| version = '0.39.2.dev9' | ||
| description='The data structure for multimodal data' | ||
@@ -5,0 +5,0 @@ readme = 'README.md' |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
936370
0.03%19916
0.04%