Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Nov 1, 2024
1 parent 2f6c229 commit 81fe77e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chatnoir_api/model/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class MinimalResult(ABC):
score: float
uuid: UUID
target_uri: str | None
target_uri: Optional[str]
snippet: HighlightedText
index: Index
title: HighlightedText
Expand Down
2 changes: 1 addition & 1 deletion chatnoir_api/v1/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PhraseRequest(Request, DataClassJsonMixin):
class MinimalResultResponse(MinimalResult, DataClassJsonMixin):
score: float
uuid: UUID = field(metadata=config(decoder=decode_uuid))
target_uri: str | None
target_uri: Optional[str]
snippet: HighlightedText = field(metadata=config(decoder=HighlightedText))
index: Index = field(metadata=config(decoder=parse_index))
title: HighlightedText = field(
Expand Down

0 comments on commit 81fe77e

Please sign in to comment.