Skip to content

feat(dependencies): unified dependencies… #619

feat(dependencies): unified dependencies…

feat(dependencies): unified dependencies… #619

Triggered via pull request February 11, 2025 00:29
Status Failure
Total duration 1m 3s
Artifacts

mypy.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
mypy: src/codegen/sdk/core/interfaces/importable.py#L63
error: Need type annotation for "deps" (hint: "deps: list[<type>] = ...") [var-annotated]
mypy: src/codegen/sdk/core/interfaces/importable.py#L65
error: Argument 1 to "filter" has incompatible type "Callable[[Any], bool]"; expected "Callable[[Symbol[Any, Any] | Import[Any]], TypeGuard[Never]]" [arg-type]
mypy: src/codegen/sdk/core/interfaces/importable.py#L65
error: Argument 1 to "filter" has incompatible type "Callable[[Any], bool]"; expected "Callable[[Symbol[Any, Any] | Import[Any]], TypeGuard[Any]]" [arg-type]
mypy: src/codegen/sdk/core/interfaces/importable.py#L65
error: Argument 1 to "_get_dependencies" of "Importable" has incompatible type "UsageType | None"; expected "UsageType" [arg-type]
mypy: src/codegen/sdk/core/interfaces/importable.py#L72
error: Missing positional argument "self" in call to "__call__" of "ProxyProperty" [call-arg]
mypy: src/codegen/sdk/core/interfaces/importable.py#L91
error: Item "None" of "Usage | None" has no attribute "usage_type" [union-attr]
mypy: src/codegen/sdk/core/interfaces/importable.py#L107
error: Missing positional argument "usage_type" in call to "_compute_dependencies" of "Editable" [call-arg]
mypy: src/codegen/sdk/core/interfaces/importable.py#L112
error: No overload variant of "__add__" of "list" matches argument type "Sequence[Importable[Any]]" [operator]
mypy: tests/unit/codegen/sdk/python/class_definition/test_class_dependencies.py#L46
error: Item "None" of "Symbol[Any, Any] | None" has no attribute "symbol_type" [union-attr]
mypy: tests/unit/codegen/sdk/python/class_definition/test_class_dependencies.py#L47
error: Item "None" of "Symbol[Any, Any] | None" has no attribute "symbol_type" [union-attr]