creating a doc page with autodocs and everything #1963
Triggered via pull request
September 18, 2023 09:44
Status
Failure
Total duration
28m 41s
Artifacts
–
Annotations
2 errors
test:
flair/datasets/sequence_labeling.py#L341
ruff
pytest_ruff.RuffError: flair/datasets/sequence_labeling.py:1128:22: C416 [*] Unnecessary `list` comprehension (rewrite using `list()`)
|
1127 | named_entities = span_labels[0]
1128 | srl_frames = [(predicate, labels) for predicate, labels in zip(verbal_predicates, span_labels[1:])]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ C416
1129 |
1130 | # this would not be reached if parse_pieces contained None, hence the cast
|
= help: Rewrite using `list()`
|
test
Process completed with exit code 1.
|