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'])
```
This commit is contained in:
Bruno Oliveira
2024-12-07 08:57:08 -03:00
parent 475b346fd9
commit 31bee7c567

View File

@@ -158,9 +158,9 @@ def repr_pytest_looponfailinfo(
def init_worker_session( def init_worker_session(
channel: execnet.Channel, channel: "execnet.Channel", # noqa: UP037
args: list[str], args: list[str],
option_dict: dict[str, Any], option_dict: dict[str, "Any"], # noqa: UP037
) -> None: ) -> None:
import os import os
import sys import sys