Skip to content

Commit

Permalink
Annotate clone_graph per docstring
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
  • Loading branch information
ajnelson-nist committed Oct 1, 2024
1 parent b3f23e9 commit b642054
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 b642054

Please sign in to comment.