We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4693591 + ab445aa commit 78b8a52Copy full SHA for 78b8a52
meilisearch_python_sdk/types.py
@@ -1,13 +1,15 @@
1
from __future__ import annotations
2
3
-import sys
4
from collections.abc import MutableMapping
5
-from typing import Any, Union
+from typing import TYPE_CHECKING, Any, Union
6
7
-if sys.version_info >= (3, 10): # pragma: no cover
8
- from typing import TypeAlias
9
-else:
10
- from typing_extensions import TypeAlias
+if TYPE_CHECKING: # pragma: no cover
+ import sys
+
+ if sys.version_info >= (3, 10):
+ from typing import TypeAlias
11
+ else:
12
+ from typing_extensions import TypeAlias
13
14
Filter: TypeAlias = Union[str, list[Union[str, list[str]]]]
15
JsonDict: TypeAlias = dict[str, Any]
0 commit comments