FOMO detection head #209
Annotations
3 errors
type-check:
luxonis_train/config/predefined_models/detection_fomo_model.py#L82
Argument of type "dict[str, str]" cannot be assigned to parameter "task" of type "str | dict[TaskType, str] | None" in function "__init__"
Type "dict[str, str]" is not assignable to type "str | dict[TaskType, str] | None"
"dict[str, str]" is not assignable to "str"
"dict[str, str]" is not assignable to "dict[TaskType, str]"
Type parameter "_KT@dict" is invariant, but "str" is not the same as "TaskType"
"dict[str, str]" is not assignable to "None" (reportArgumentType)
|
type-check:
tests/integration/test_fomo_detection.py#L89
Argument of type "dict[str, List[Path]]" cannot be assigned to parameter "definitions" of type "Dict[str, List[PathType]] | None" in function "make_splits"
Type "dict[str, List[Path]]" is not assignable to type "Dict[str, List[PathType]] | None"
"dict[str, List[Path]]" is not assignable to "Dict[str, List[PathType]]"
Type parameter "_VT@dict" is invariant, but "List[Path]" is not the same as "List[PathType]"
Consider switching from "dict" to "Mapping" which is covariant in the value type
"dict[str, List[Path]]" is not assignable to "None" (reportArgumentType)
|
type-check
2 errors
|