Skip to content

Commit c53ee0e

Browse files
Rename argument
1 parent ed8f4f8 commit c53ee0e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

neomodel/async_/match.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,19 +1571,19 @@ def _register_relation_to_fetch(
15711571
item.alias = alias
15721572
return item
15731573

1574-
def unique_variables(self, *pathes: tuple[str, ...]) -> "AsyncNodeSet":
1575-
"""Generate unique variable names for the given pathes."""
1576-
self._unique_variables = pathes
1574+
def unique_variables(self, *paths: tuple[str, ...]) -> "AsyncNodeSet":
1575+
"""Generate unique variable names for the given paths."""
1576+
self._unique_variables = paths
15771577
return self
15781578

15791579
def traverse(
1580-
self, *pathes: tuple[str, ...], **aliased_pathes: dict
1580+
self, *paths: tuple[str, ...], **aliased_paths: dict
15811581
) -> "AsyncNodeSet":
1582-
"""Specify a set of pathes to traverse."""
1582+
"""Specify a set of paths to traverse."""
15831583
relations = []
1584-
for path in pathes:
1584+
for path in paths:
15851585
relations.append(self._register_relation_to_fetch(path))
1586-
for alias, aliased_path in aliased_pathes.items():
1586+
for alias, aliased_path in aliased_paths.items():
15871587
relations.append(
15881588
self._register_relation_to_fetch(aliased_path, alias=alias)
15891589
)

neomodel/sync_/match.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,17 +1567,17 @@ def _register_relation_to_fetch(
15671567
item.alias = alias
15681568
return item
15691569

1570-
def unique_variables(self, *pathes: tuple[str, ...]) -> "NodeSet":
1571-
"""Generate unique variable names for the given pathes."""
1572-
self._unique_variables = pathes
1570+
def unique_variables(self, *paths: tuple[str, ...]) -> "NodeSet":
1571+
"""Generate unique variable names for the given paths."""
1572+
self._unique_variables = paths
15731573
return self
15741574

1575-
def traverse(self, *pathes: tuple[str, ...], **aliased_pathes: dict) -> "NodeSet":
1576-
"""Specify a set of pathes to traverse."""
1575+
def traverse(self, *paths: tuple[str, ...], **aliased_paths: dict) -> "NodeSet":
1576+
"""Specify a set of paths to traverse."""
15771577
relations = []
1578-
for path in pathes:
1578+
for path in paths:
15791579
relations.append(self._register_relation_to_fetch(path))
1580-
for alias, aliased_path in aliased_pathes.items():
1580+
for alias, aliased_path in aliased_paths.items():
15811581
relations.append(
15821582
self._register_relation_to_fetch(aliased_path, alias=alias)
15831583
)

0 commit comments

Comments
 (0)