RFC: from __future__ import annotations + migrate

This commit is contained in:
Ronny Pfannschmidt
2024-06-17 17:01:28 +02:00
parent 20dd1d6738
commit 9295f9ffff
242 changed files with 1961 additions and 1777 deletions

View File

@@ -1,9 +1,10 @@
# mypy: allow-untyped-defs
from __future__ import annotations
import os
import sys
import textwrap
from typing import Any
from typing import Dict
import _pytest._code
from _pytest.config import ExitCode
@@ -1129,7 +1130,7 @@ class TestTracebackCutting:
tb = None
try:
ns: Dict[str, Any] = {}
ns: dict[str, Any] = {}
exec("def foo(): raise ValueError", ns)
ns["foo"]()
except ValueError: