Skip to content

gh-3243: support pickle & deepcopy #2405

gh-3243: support pickle & deepcopy

gh-3243: support pickle & deepcopy #2405

Triggered via pull request August 30, 2024 11:31
Status Failure
Total duration 14m 50s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
test: flair/__init__.py#L1
mypy-status mypy exited with status 1.
test: flair/data.py#L1
Black format check --- /home/runner/work/flair/flair/flair/data.py 2024-08-30 11:31:16.760673+00:00 +++ /home/runner/work/flair/flair/flair/data.py 2024-08-30 11:34:59.120618+00:00 @@ -1022,12 +1022,11 @@ @typing.overload def __getitem__(self, s: slice) -> Span: ... @typing.overload - def __getitem__(self, s: typing.Tuple[Span, Span]) -> Relation: - ... + def __getitem__(self, s: typing.Tuple[Span, Span]) -> Relation: ... def __getitem__(self, subscript): if isinstance(subscript, tuple): first, second = subscript identifier = ""
test: flair/models/relation_classifier_model.py#L1
flair/models/relation_classifier_model.py 395: error: Argument "zero_tag_value" to "get_label" of "DataPoint" has incompatible type "None"; expected "str" [arg-type]
test: tests/model_test_utils.py#L231
TestTarsTagger.test_context_is_set_correctly[False] AttributeError: 'Span' object has no attribute 'data_point'
test
Process completed with exit code 1.
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/