fixup: remove remove unused alias in code

This commit is contained in:
Ronny Pfannschmidt
2024-06-20 12:05:10 +02:00
parent 2a75bab290
commit 8e495e32c6
242 changed files with 1962 additions and 1780 deletions

View File

@@ -1,6 +1,7 @@
# mypy: allow-untyped-defs
from __future__ import annotations
from typing import Sequence
from typing import Union
from _pytest._code.code import ExceptionChainRepr
from _pytest._code.code import ExceptionRepr
@@ -294,8 +295,8 @@ class TestReportSerialization:
reprec = pytester.inline_run()
if report_class is TestReport:
reports: Union[Sequence[TestReport], Sequence[CollectReport]] = (
reprec.getreports("pytest_runtest_logreport")
reports: Sequence[TestReport] | Sequence[CollectReport] = reprec.getreports(
"pytest_runtest_logreport"
)
# we have 3 reports: setup/call/teardown
assert len(reports) == 3