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,9 +1,9 @@
# mypy: allow-untyped-defs
from __future__ import annotations
import sys
from textwrap import dedent
from typing import Generator
from typing import List
from typing import Optional
from _pytest.pytester import Pytester
import pytest
@@ -91,8 +91,8 @@ def test_clean_up(pytester: Pytester) -> None:
pytester.makefile(".ini", pytest="[pytest]\npythonpath=I_SHALL_BE_REMOVED\n")
pytester.makepyfile(test_foo="""def test_foo(): pass""")
before: Optional[List[str]] = None
after: Optional[List[str]] = None
before: list[str] | None = None
after: list[str] | None = None
class Plugin:
@pytest.hookimpl(wrapper=True, tryfirst=True)