Skip to content

add compatibility to torch 2.6 #2584

add compatibility to torch 2.6

add compatibility to torch 2.6 #2584

Triggered via pull request January 31, 2025 13:10
Status Failure
Total duration 15m 20s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
test: flair/__init__.py#L1
mypy-status mypy exited with status 1.
test: flair/embeddings/document.py#L1
flair/embeddings/document.py 697: error: Argument "dtype" to "zeros" has incompatible type "Union[dtype, Tensor, Module]"; expected "Optional[dtype]" [arg-type]
test: flair/embeddings/token.py#L1
flair/embeddings/token.py 1469: error: Item "Tensor" of "Union[Tensor, Module]" has no attribute "spm" [union-attr] 1469: error: Item "Tensor" of "Union[Any, Tensor, Module]" has no attribute "vocab_size" [union-attr] 1469: error: "Tensor" not callable [operator]
test: flair/models/sequence_tagger_model.py#L1
flair/models/sequence_tagger_model.py 865: error: Unexpected keyword argument "use_auth_token" [call-arg] 866: error: Item "None" of "Optional[list[RepoSibling]]" has no attribute "__iter__" (not iterable) [union-attr]
test
Process completed with exit code 1.