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:
return generation_config
def _prepare_generation_config(
self, generation_config: GenerationConfig, **kwargs: Dict
self, generation_config: Optional[GenerationConfig], **kwargs: Dict
) -> Tuple[GenerationConfig, Dict]:
"""
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