You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch adds more type hints for rdflib.graph, mainly as a baseline
for adding typing to rdflib.store which I will do next.
I have resorted to using type aliases, in part because it makes it
easier to change in the future and to keep everything consistent.
One downside to the type aliases is that autodoc type hints do not
work particularly well with this which is why I will
switch to https://github.com/tox-dev/sphinx-autodoc-typehints in a
separate patch.
This patch only contains typing changes and does not change runtime
behaviour.
Broken off from #1850
# type error: List item 0 has incompatible type "Union[IdentifiedNode, Literal]"; expected "IdentifiedNode"
329
+
# type error: Argument 3 to "Color" has incompatible type "Union[IdentifiedNode, Literal]"; expected "Tuple[Tuple[Union[int, str], URIRef, Union[int, str]], ...]"
0 commit comments