Skip to content

mypy issues

mypy issues #39

GitHub Actions / JUnit Test Report failed Mar 12, 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_pyshacl/plugin_pyshacl.py:66: error: Returning Any from function declared to return "Literal | None"  [no-any-return]
cmem_plugin_pyshacl/plugin_pyshacl.py:102: error: Argument 1 to "filter" has incompatible type "Callable[[Literal], bool]"; expected "Callable[[Node], TypeGuard[bool]]"  [arg-type]
cmem_plugin_pyshacl/plugin_pyshacl.py:355: error: Argument 1 to "add" of "Graph" has incompatible type "tuple[Node | None, URIRef, URIRef]"; expected "tuple[Node, Node, Node]"  [arg-type]
cmem_plugin_pyshacl/plugin_pyshacl.py:358: error: Argument 1 to "add" of "Graph" has incompatible type "tuple[Node | None, URIRef, URIRef]"; expected "tuple[Node, Node, Node]"  [arg-type]
cmem_plugin_pyshacl/plugin_pyshacl.py:361: error: Argument 1 to "add" of "Graph" has incompatible type "tuple[Node | None, URIRef, Literal]"; expected "tuple[Node, Node, Node]"  [arg-type]
cmem_plugin_pyshacl/plugin_pyshacl.py:384: error: Argument 1 to "add" of "Graph" has incompatible type "tuple[Node | None, URIRef, Literal]"; expected "tuple[Node, Node, Node]"  [arg-type]
cmem_plugin_pyshacl/plugin_pyshacl.py:401: error: Incompatible types in assignment (expression has type "Literal | None", variable has type "str")  [assignment]
cmem_plugin_pyshacl/plugin_pyshacl.py:403: error: Argument 1 to "add" of "Graph" has incompatible type "tuple[Any, URIRef, str]"; expected "tuple[Node, Node, Node]"  [arg-type]
cmem_plugin_pyshacl/plugin_pyshacl.py:406: error: Incompatible types in assignment (expression has type "Literal | None", variable has type "str")  [assignment]
cmem_plugin_pyshacl/plugin_pyshacl.py:408: error: Argument 1 to "add" of "Graph" has incompatible type "tuple[Any, URIRef, str]"; expected "tuple[Node, Node, Node]"  [arg-type]
cmem_plugin_pyshacl/plugin_pyshacl.py:412: error: Incompatible types in assignment (expression has type "Literal | None", variable has type "str")  [assignment]
cmem_plugin_pyshacl/plugin_pyshacl.py:414: error: Argument 1 to "add" of "Graph" has incompatible type "tuple[Any, URIRef, str]"; expected "tuple[Node, Node, Node]"  [arg-type]
cmem_plugin_pyshacl/plugin_pyshacl.py:440: error: "int" not callable  [operator]
cmem_plugin_pyshacl/plugin_pyshacl.py:517: error: Argument 2 to "check_object" of "ShaclValidation" has incompatible type "Node"; expected "URIRef"  [arg-type]
cmem_plugin_pyshacl/plugin_pyshacl.py:676: error: Argument 3 to "add_shui_conforms_val" of "ShaclValidation" has incompatible type "Any | None"; expected "list[Any]"  [arg-type]