fix type annotation (#2147)

* fix type annotation

* Update Documentation & Code Style

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Julian Risch 2022-02-09 09:50:37 +01:00 committed by GitHub
parent 7fab027bf0
commit 4b0ff830ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ then be found in the dict returned by this method under the key "_debug"
#### eval
```python
def eval(labels: List[MultiLabel], documents: Optional[List[List[Document]]] = None, params: Optional[dict] = None, sas_model_name_or_path: str = None, add_isolated_node_eval: bool = False) -> EvaluationResult
def eval(labels: List[MultiLabel], documents: Optional[List[Optional[List[Document]]]] = None, params: Optional[dict] = None, sas_model_name_or_path: str = None, add_isolated_node_eval: bool = False) -> EvaluationResult
```
Evaluates the pipeline by running the pipeline once per query in debug mode

View File

@ -480,7 +480,7 @@ class Pipeline(BasePipeline):
def eval(
self,
labels: List[MultiLabel],
documents: Optional[List[List[Document]]] = None,
documents: Optional[List[Optional[List[Document]]]] = None,
params: Optional[dict] = None,
sas_model_name_or_path: str = None,
add_isolated_node_eval: bool = False,