Feat: Multi-Input Support #983
ci.yaml
on: pull_request
pre-commit
11s
auto-assigner
5s
labeler
4s
update-base-report
0s
check-release-requirements
0s
docs
18s
Matrix: tests
Annotations
6 errors
|
Semgrep Issue:
examples/utils/torch_utils.py#L90
Functions reliant on pickle can result in arbitrary code execution. Consider loading from `state_dict`, using fickling, or switching to a safer serialization method like ONNX
|
|
Semgrep Issue:
examples/utils/torch_utils.py#L89
Functions reliant on pickle can result in arbitrary code execution. Consider loading from `state_dict`, using fickling, or switching to a safer serialization method like ONNX
|
|
Semgrep Issue:
examples/utils/torch_utils.py#L82
Functions reliant on pickle can result in arbitrary code execution. Consider loading from `state_dict`, using fickling, or switching to a safer serialization method like ONNX
|
|
Semgrep Issue:
examples/utils/torch_utils.py#L81
Functions reliant on pickle can result in arbitrary code execution. Consider loading from `state_dict`, using fickling, or switching to a safer serialization method like ONNX
|
|
type-check
1 error
|
|
type-check:
tests/test_data/test_multi_input.py#L59
Argument of type "dict[str, str]" cannot be assigned to parameter "color_space" of type "dict[str, Literal['RGB', 'BGR', 'GRAY']] | Literal['RGB', 'BGR', 'GRAY'] | None" in function "__init__"
Type "dict[str, str]" is not assignable to type "dict[str, Literal['RGB', 'BGR', 'GRAY']] | Literal['RGB', 'BGR', 'GRAY'] | None"
"dict[str, str]" is not assignable to "dict[str, Literal['RGB', 'BGR', 'GRAY']]"
Type parameter "_VT@dict" is invariant, but "str" is not the same as "Literal['RGB', 'BGR', 'GRAY']"
Consider switching from "dict" to "Mapping" which is covariant in the value type
"dict[str, str]" is not assignable to "None"
"dict[str, str]" is not assignable to "Literal['RGB']"
"dict[str, str]" is not assignable to "Literal['BGR']"
"dict[str, str]" is not assignable to "Literal['GRAY']" (reportArgumentType)
|