Overhaul with Pydantic and format version generic 0.3 / model 0.5 #1046
Annotations
10 errors and 1 warning
bioimageio/spec/_internal/base_nodes.py#L155
Cannot assign member "implemented_format_version_tuple" for type "type[ResourceDescriptionBase]"
"tuple[int, ...]" is incompatible with "Tuple[int, int, int]"
Tuple size mismatch; expected 3 but received indeterminate (reportGeneralTypeIssues)
|
bioimageio/spec/_internal/base_nodes.py#L163
Could not assign item in TypedDict
"tuple[int, ...]" is incompatible with "Tuple[int, int, int]"
Tuple size mismatch; expected 3 but received indeterminate (reportGeneralTypeIssues)
|
bioimageio/spec/_internal/field_warning.py#L13
Import "WARNING_SEVERITY_TO_NAME" is not accessed (reportUnusedImport)
|
bioimageio/spec/model/v0_4_converter.py#L16
Argument of type "YamlMapping" cannot be assigned to parameter "data" of type "Dict[str, Any]" in function "convert_model_from_v0_3_to_0_4_0"
"YamlMapping" is incompatible with "Dict[str, Any]"
Type parameter "_KT@dict" is invariant, but "YamlKey" is not the same as "str" (reportGeneralTypeIssues)
|
bioimageio/spec/model/v0_5.py#L13
Type of "model_validator" is partially unknown
Type of "model_validator" is "Overload[(*, mode: Literal['wrap']) -> (((ModelWrapValidator[Unknown] | ModelWrapValidatorWithoutInfo[Unknown])) -> PydanticDescriptorProxy[ModelValidatorDecoratorInfo]), (*, mode: Literal['before']) -> (((ModelBeforeValidator | ModelBeforeValidatorWithoutInfo)) -> PydanticDescriptorProxy[ModelValidatorDecoratorInfo]), (*, mode: Literal['after']) -> (((((_ModelType@model_validator, ValidationInfo) -> _ModelType@model_validator) | ((_ModelType@model_validator) -> _ModelType@model_validator))) -> PydanticDescriptorProxy[ModelValidatorDecoratorInfo]), (*, mode: Literal['wrap', 'before', 'after']) -> Any]" (reportUnknownVariableType)
|
bioimageio/spec/model/v0_5.py#L1
Import "collections.abc" is not accessed (reportUnusedImport)
|
bioimageio/spec/model/v0_5.py#L2
Import "TYPE_CHECKING" is not accessed (reportUnusedImport)
|
bioimageio/spec/model/v0_5.py#L2
Import "Mapping" is not accessed (reportUnusedImport)
|
bioimageio/spec/model/v0_5.py#L5
Unnecessary "# type: ignore" comment
|
bioimageio/spec/model/v0_5_converter.py#L28
Argument of type "YamlMapping" cannot be assigned to parameter "data" of type "Dict[str, Any]" in function "_convert_architecture"
"YamlMapping" is incompatible with "Dict[str, Any]"
Type parameter "_KT@dict" is invariant, but "YamlKey" is not the same as "str" (reportGeneralTypeIssues)
|
tests/test_bioimageio_collection.py#L6
Stub file not found for "pooch" (reportMissingTypeStubs)
|
The logs for this run have expired and are no longer available.
Loading