"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "1b1867d86b9203ee8b9d41bed5d6224c7f407a18"
Unverified Commit 92544cb8 authored by xkszltl's avatar xkszltl Committed by GitHub
Browse files

Missing `Optional` in typing. (#30821)

The function checks for None in its first line.
parent 64c06df3
...@@ -1255,7 +1255,7 @@ class GenerationMixin: ...@@ -1255,7 +1255,7 @@ class GenerationMixin:
return generation_config return generation_config
def _prepare_generation_config( def _prepare_generation_config(
self, generation_config: GenerationConfig, **kwargs: Dict self, generation_config: Optional[GenerationConfig], **kwargs: Dict
) -> Tuple[GenerationConfig, Dict]: ) -> Tuple[GenerationConfig, Dict]:
""" """
Prepares the base generation config, then applies any generation configuration options from kwargs. Prepares the base generation config, then applies any generation configuration options from kwargs.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment