chore: drop UP045 (#33362)

Python 3.9 EOL
This commit is contained in:
Mason Daugherty
2025-10-08 21:17:53 -04:00
committed by GitHub
parent 0039b3b046
commit 31eeb50ce0
119 changed files with 1423 additions and 1504 deletions

View File

@@ -2,7 +2,7 @@ from __future__ import annotations
import uuid
from collections.abc import Callable
from typing import TYPE_CHECKING, Optional
from typing import TYPE_CHECKING
import pytest # type: ignore[import-not-found]
@@ -22,7 +22,7 @@ if TYPE_CHECKING:
],
)
def test_qdrant_embedding_interface(
embeddings: Optional[Embeddings], embedding_function: Optional[Callable]
embeddings: Embeddings | None, embedding_function: Callable | None
) -> None:
"""Test Qdrant may accept different types for embeddings."""
from qdrant_client import QdrantClient
@@ -46,7 +46,7 @@ def test_qdrant_embedding_interface(
],
)
def test_qdrant_embedding_interface_raises_value_error(
embeddings: Optional[Embeddings], embedding_function: Optional[Callable]
embeddings: Embeddings | None, embedding_function: Callable | None
) -> None:
"""Test Qdrant requires only one method for embeddings."""
from qdrant_client import QdrantClient