Skip to content

Commit 372866a

Browse files
committed
style: fix typo
1 parent e8fc83c commit 372866a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pyrdf2vec/graphs/kg.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,11 @@ def _fill_hops(self, entities: Entities) -> None:
452452
def _get_hops(self, vertex: Vertex, is_reverse: bool = False) -> List[Hop]:
453453
"""Returns the hops of a vertex for a local Knowledge Graph.
454454
455-
is Args:
456-
vertex: The name of the vertex to get the hops.
457-
is_reverse: If True, this function gets the parent nodes of a
458-
vertex. Otherwise, get the child nodes for this vertex.
459-
Defaults to False.
455+
Args:
456+
vertex: The name of the vertex to get the hops.
457+
is_reverse: If True, this function gets the parent nodes of a
458+
vertex. Otherwise, get the child nodes for this vertex.
459+
Defaults to False.
460460
461461
Returns:
462462
The hops of a vertex in a (predicate, object) form.

pyrdf2vec/rdf2vec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def get_walks(self, kg: KG, entities: Entities) -> List[List[SWalk]]:
162162
"""
163163
# Avoids duplicate entities for unnecessary walk extractions.
164164
entities = list(set(entities))
165-
if kg.skip_verif is False and not kg.is_exist(entities):
165+
if kg.skip_verify is False and not kg.is_exist(entities):
166166
if kg.mul_req:
167167
asyncio.run(kg.connector.close())
168168
raise ValueError(

0 commit comments

Comments
 (0)