Skip to content

Commit 31bee7c

Browse files
committed
Revert using direct annotations in looponfail.py
We need to use string annotations otherwise we get this error: ``` ValueError: ("the use of non-builtin globals isn't supported", ['execnet', 'Any']) ```
1 parent 475b346 commit 31bee7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xdist/looponfail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ def repr_pytest_looponfailinfo(
158158

159159

160160
def init_worker_session(
161-
channel: execnet.Channel,
161+
channel: "execnet.Channel", # noqa: UP037
162162
args: list[str],
163-
option_dict: dict[str, Any],
163+
option_dict: dict[str, "Any"], # noqa: UP037
164164
) -> None:
165165
import os
166166
import sys

0 commit comments

Comments
 (0)