mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fixed type hint for pipelines/check_task (#19150)
This commit is contained in:
parent
ece762443e
commit
6395d1227f
@ -385,7 +385,7 @@ def get_task(model: str, use_auth_token: Optional[str] = None) -> str:
|
||||
return task
|
||||
|
||||
|
||||
def check_task(task: str) -> Tuple[Dict, Any]:
|
||||
def check_task(task: str) -> Tuple[str, Dict, Any]:
|
||||
"""
|
||||
Checks an incoming task string, to validate it's correct and return the default Pipeline and Model classes, and
|
||||
default models if they exist.
|
||||
|
Loading…
Reference in New Issue
Block a user