Skip to content

Commit

Permalink
Merge pull request #258 from ajnelson-nist/annotate_clone_graph
Browse files Browse the repository at this point in the history
Annotate `clone_graph` per docstring
  • Loading branch information
ashleysommer authored Oct 1, 2024
2 parents 0325fbf + b642054 commit c5c1df6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyshacl/rdfutil/clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def clone_dataset(source_ds: ConjunctiveLike, target_ds=None):
return target_ds


def clone_graph(source_graph, target_graph=None, identifier=None):
def clone_graph(
source_graph: rdflib.Graph, target_graph: Optional[rdflib.Graph] = None, identifier: Optional[str] = None
) -> rdflib.Graph:
"""
Make a clone of the source_graph by directly copying triples from source_graph to target_graph
:param source_graph:
Expand Down

0 comments on commit c5c1df6

Please sign in to comment.