From 31bee7c56784a2ddff684851c7dca509bb06a2d1 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 7 Dec 2024 08:57:08 -0300 Subject: [PATCH] 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']) ``` --- src/xdist/looponfail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xdist/looponfail.py b/src/xdist/looponfail.py index 128127a..38f1e6f 100644 --- a/src/xdist/looponfail.py +++ b/src/xdist/looponfail.py @@ -158,9 +158,9 @@ def repr_pytest_looponfailinfo( def init_worker_session( - channel: execnet.Channel, + channel: "execnet.Channel", # noqa: UP037 args: list[str], - option_dict: dict[str, Any], + option_dict: dict[str, "Any"], # noqa: UP037 ) -> None: import os import sys