Skip to content

Commit 0f469a3

Browse files
committed
Fix.
1 parent aaa1af7 commit 0f469a3

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ repos:
3535
rev: 22.3.0
3636
hooks:
3737
- id: black
38-
- repo: https://github.com/asottile/blacken-docs
39-
rev: v1.12.1
40-
hooks:
41-
- id: blacken-docs
42-
additional_dependencies: [black]
4338
- repo: https://github.com/PyCQA/flake8
4439
rev: 4.0.1
4540
hooks:

src/pytask_parallel/backends.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
try:
1616
from loky import get_reusable_executor
17-
18-
PARALLEL_BACKENDS["loky"] = get_reusable_executor
19-
PARALLEL_BACKENDS_DEFAULT = "loky"
2017
except ImportError:
2118
pass
19+
else:
20+
PARALLEL_BACKENDS["loky"] = get_reusable_executor
21+
PARALLEL_BACKENDS_DEFAULT = "loky"

0 commit comments

Comments
 (0)