Skip to content

Commit 8d3e8e0

Browse files
committed
fix: revert only functional change from last commit
1 parent ef643a1 commit 8d3e8e0

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

nx_parallel/interface.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ def __setstate__(self, state):
8181
def assign_algorithms(cls):
8282
"""Class decorator to assign algorithms to the class attributes."""
8383
for attr in ALGORITHMS:
84-
setattr(
85-
cls, attr.rsplit(".", 1)[-1], staticmethod(attrgetter(attr)(algorithms))
86-
)
84+
func_name = attr.rsplit(".", 1)[-1]
85+
setattr(cls, func_name, staticmethod(attrgetter(attr)(algorithms)))
8786
return cls
8887

8988

nx_parallel/utils/chunk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_n_jobs(n_jobs=None):
5454
5555
- If running under pytest, it returns 2 jobs when n_jobs is None.
5656
- If the `active` configuration in NetworkX's config is `True`, `n_jobs`
57-
is extracted from the NetworkX config.
57+
is extracted from the NetworkX config.
5858
- Otherwise, `n_jobs` is obtained from joblib's active backend.
5959
- `ValueError` is raised if `n_jobs` is 0.
6060
"""

0 commit comments

Comments
 (0)