Skip to content

Commit 2240085

Browse files
authored
Merge 1ae5a38 into 3f9762b
2 parents 3f9762b + 1ae5a38 commit 2240085

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/_pytask/session.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88
from _pytask.outcomes import ExitCode
99
from attrs import define
1010
from attrs import field
11-
from pluggy import HookRelay
1211

12+
# HookRelay was published in v1.3.
13+
try:
14+
from pluggy import HookRelay
15+
except ImportError:
16+
from pluggy._hooks import _HookRelay as HookRelay
1317

1418
if TYPE_CHECKING:
1519
from _pytask.node_protocols import PTask

0 commit comments

Comments
 (0)