Skip to content

Task improvements

Task improvements #350

Triggered via pull request January 31, 2025 18:42
Status Failure
Total duration 3m 5s
Artifacts

ci.yaml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors
type-check: luxonis_train/__main__.py#L207
Argument of type "dict[str, ndarray[Unknown, Unknown]]" cannot be assigned to parameter "labels" of type "Labels" in function "visualize"   "dict[str, ndarray[Unknown, Unknown]]" is not assignable to "Dict[str, Tuple[ndarray[Unknown, Unknown], LabelType]]"     Type parameter "_VT@dict" is invariant, but "ndarray[Unknown, Unknown]" is not the same as "Tuple[ndarray[Unknown, Unknown], LabelType]"     Consider switching from "dict" to "Mapping" which is covariant in the value type (reportArgumentType)
type-check: luxonis_train/tasks.py#L8
"Category" is unknown import symbol (reportAttributeAccessIssue)
type-check: luxonis_train/attached_modules/base_attached_module.py#L11
"get_task_type" is unknown import symbol (reportAttributeAccessIssue)
type-check: luxonis_train/attached_modules/metrics/embedding_metrics.py#L69
Operator "+=" not supported for types "Tensor | Module" and "Tensor"   Operator "+" not supported for types "Module" and "Tensor" (reportOperatorIssue)
type-check: luxonis_train/attached_modules/metrics/embedding_metrics.py#L70
Operator "+=" not supported for types "Tensor | Module" and "int"   Operator "+" not supported for types "Module" and "int" (reportOperatorIssue)
type-check: luxonis_train/attached_modules/metrics/embedding_metrics.py#L73
Operator "/" not supported for types "Tensor | Module" and "Tensor | Module"   Operator "/" not supported for types "Tensor" and "Module"   Operator "/" not supported for types "Module" and "Tensor"   Operator "/" not supported for types "Module" and "Module" (reportOperatorIssue)
type-check: luxonis_train/attached_modules/metrics/embedding_metrics.py#L110
Object of type "Tensor" is not callable   Attribute "__call__" is unknown (reportCallIssue)
type-check: luxonis_train/attached_modules/metrics/embedding_metrics.py#L110
Cannot access attribute "append" for class "Tensor"   Attribute "append" is unknown (reportAttributeAccessIssue)
type-check: luxonis_train/attached_modules/metrics/embedding_metrics.py#L120
Object of type "Tensor" is not callable   Attribute "__call__" is unknown (reportCallIssue)
type-check: luxonis_train/attached_modules/metrics/embedding_metrics.py#L120
Cannot access attribute "append" for class "Tensor"   Attribute "append" is unknown (reportAttributeAccessIssue)