diff --git a/typeshed/rdflib/graph.pyi b/typeshed/rdflib/graph.pyi index afb25870..04c921f0 100644 --- a/typeshed/rdflib/graph.pyi +++ b/typeshed/rdflib/graph.pyi @@ -1,4 +1,4 @@ -from typing import Any, Iterator, Optional, Tuple, Union, overload +from typing import Any, Iterator, List, Optional, Tuple, Union, overload from rdflib.term import BNode, Identifier, Node @@ -56,13 +56,13 @@ class Graph(Node): def set(self, triple: Any) -> None: ... def subjects( self, predicate: Optional[Any] = ..., object: Optional[Any] = ... - ) -> None: ... + ) -> List[str]: ... def predicates( self, subject: Optional[Any] = ..., object: Optional[Any] = ... ) -> None: ... def objects( self, subject: Optional[Any] = ..., predicate: Optional[Any] = ... - ) -> None: ... + ) -> List[str]: ... def subject_predicates(self, object: Optional[Any] = ...) -> None: ... def subject_objects(self, predicate: Optional[Any] = ...) -> None: ... def predicate_objects(self, subject: Optional[Any] = ...) -> None: ...