RFC: from __future__ import annotations + migrate
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
# mypy: allow-untyped-defs
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
import types
|
||||
from typing import List
|
||||
|
||||
from _pytest.config import Config
|
||||
from _pytest.config import ExitCode
|
||||
@@ -152,7 +153,7 @@ class TestPytestPluginInteractions:
|
||||
saveindent.append(pytestpm.trace.root.indent)
|
||||
raise ValueError()
|
||||
|
||||
values: List[str] = []
|
||||
values: list[str] = []
|
||||
pytestpm.trace.root.setwriter(values.append)
|
||||
undo = pytestpm.enable_tracing()
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user