Skip to content

Commit

Permalink
Use forward references for type hints, avoid NameError (#6780)
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje authored Jan 18, 2024
1 parent d4f6531 commit f47439c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/components/generators/chat/hugging_face_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def create_message(
self,
text: str,
index: int,
tokenizer: Union[PreTrainedTokenizer, PreTrainedTokenizerFast],
tokenizer: Union["PreTrainedTokenizer", "PreTrainedTokenizerFast"],
prompt: str,
generation_kwargs: Dict[str, Any],
) -> ChatMessage:
Expand Down

0 comments on commit f47439c

Please sign in to comment.