Skip to content

Commit

Permalink
Update to string annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed May 13, 2024
1 parent b094c61 commit 5d2baa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/palace/manager/search/document.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from __future__ import annotations

from abc import ABC, abstractmethod
from collections.abc import Mapping, Sequence
from collections.abc import Mapping

SearchMappingSerialization = Mapping[
str, str | bool | Sequence[str] | "SearchMappingSerialization"
str, "str | bool | Sequence[str] | SearchMappingSerialization"
]


Expand Down
2 changes: 1 addition & 1 deletion src/palace/manager/search/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def from_bulk_error(cls, error: dict[str, Any]) -> SearchServiceFailedDocument:
)


SearchDocument = dict[str, str | int | bool | None | Sequence[str] | "SearchDocument"]
SearchDocument = dict[str, "str | int | bool | None | Sequence[str] | SearchDocument"]


class SearchService(ABC):
Expand Down

0 comments on commit 5d2baa9

Please sign in to comment.