OCR recognition model #333
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/callbacks/__init__.py#L31
Cannot access attribute "register" for class "Registry[type[Callback]]"
Attribute "register" is unknown (reportAttributeAccessIssue)
|
type-check:
luxonis_train/callbacks/__init__.py#L32
Cannot access attribute "register" for class "Registry[type[Callback]]"
Attribute "register" is unknown (reportAttributeAccessIssue)
|
type-check:
luxonis_train/callbacks/__init__.py#L33
Cannot access attribute "register" for class "Registry[type[Callback]]"
Attribute "register" is unknown (reportAttributeAccessIssue)
|
type-check:
luxonis_train/callbacks/__init__.py#L34
Cannot access attribute "register" for class "Registry[type[Callback]]"
Attribute "register" is unknown (reportAttributeAccessIssue)
|
type-check:
luxonis_train/callbacks/__init__.py#L35
Cannot access attribute "register" for class "Registry[type[Callback]]"
Attribute "register" is unknown (reportAttributeAccessIssue)
|
type-check:
luxonis_train/callbacks/__init__.py#L36
Cannot access attribute "register" for class "Registry[type[Callback]]"
Attribute "register" is unknown (reportAttributeAccessIssue)
|
type-check:
luxonis_train/callbacks/__init__.py#L37
Cannot access attribute "register" for class "Registry[type[Callback]]"
Attribute "register" is unknown (reportAttributeAccessIssue)
|
type-check:
luxonis_train/callbacks/__init__.py#L38
Cannot access attribute "register" for class "Registry[type[Callback]]"
Attribute "register" is unknown (reportAttributeAccessIssue)
|
type-check:
luxonis_train/callbacks/__init__.py#L39
Cannot access attribute "register" for class "Registry[type[Callback]]"
Attribute "register" is unknown (reportAttributeAccessIssue)
|