Skip to content

Use project template #133

Use project template

Use project template #133

GitHub Actions / JUnit Test Report failed Sep 24, 2024 in 0s

1 tests run, 0 passed, 0 skipped, 1 failed.

Annotations

Check failure on line 1 in .venv/lib/python3.11/site-packages/mypy/xml/mypy.xsd

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

mypy.mypy-py3_11-linux

mypy produced messages
Raw output
cmem_plugin_base/dataintegration/utils/entity_builder.py:47: error: Need type annotation for "paths_map" (hint: "paths_map: dict[<type>, <type>] = ...")  [var-annotated]
cmem_plugin_base/dataintegration/utils/entity_builder.py:125: error: Need type annotation for "path_to_entities" (hint: "path_to_entities: dict[<type>, <type>] = ...")  [var-annotated]
cmem_plugin_base/dataintegration/utils/entity_builder.py:136: error: Item "None" of "Any | None" has no attribute "__iter__" (not iterable)  [union-attr]
cmem_plugin_base/dataintegration/utils/entity_builder.py:141: error: Item "None" of "list[Any | None] | Any | None" has no attribute "__iter__" (not iterable)  [union-attr]
cmem_plugin_base/dataintegration/utils/entity_builder.py:146: error: Argument "data" to "_get_entity" has incompatible type "Any | None"; expected "dict[Any, Any]"  [arg-type]
cmem_plugin_base/dataintegration/types.py:53: error: Returning Any from function declared to return "type"  [no-any-return]
cmem_plugin_base/dataintegration/types.py:53: error: "ParameterType[T]" has no attribute "__orig_bases__"  [attr-defined]
cmem_plugin_base/dataintegration/parameter/graph.py:91: error: Argument "key" to "sort" of "list" has incompatible type "Callable[[Autocompletion], str | None]"; expected "Callable[[Autocompletion], SupportsDunderLT[Any] | SupportsDunderGT[Any]]"  [arg-type]
cmem_plugin_base/dataintegration/parameter/graph.py:91: error: Incompatible return value type (got "str | None", expected "SupportsDunderLT[Any] | SupportsDunderGT[Any]")  [return-value]
cmem_plugin_base/dataintegration/parameter/dataset.py:58: error: Argument "key" to "sort" of "list" has incompatible type "Callable[[Autocompletion], str | None]"; expected "Callable[[Autocompletion], SupportsDunderLT[Any] | SupportsDunderGT[Any]]"  [arg-type]
cmem_plugin_base/dataintegration/parameter/dataset.py:58: error: Incompatible return value type (got "str | None", expected "SupportsDunderLT[Any] | SupportsDunderGT[Any]")  [return-value]
cmem_plugin_base/dataintegration/parameter/choice.py:41: error: Argument "key" to "sort" of "list" has incompatible type "Callable[[Autocompletion], str | None]"; expected "Callable[[Autocompletion], SupportsDunderLT[Any] | SupportsDunderGT[Any]]"  [arg-type]
cmem_plugin_base/dataintegration/parameter/choice.py:41: error: Incompatible return value type (got "str | None", expected "SupportsDunderLT[Any] | SupportsDunderGT[Any]")  [return-value]
tests/test_output_only_plugin.py:37: error: Incompatible default for argument "context" (default has type "tuple[()]", argument has type "ExecutionContext")  [assignment]
tests/utils.py:25: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]