Skip to content

Commit 8eeed3d

Browse files
committed
Remove PT004 from lint.ignore rules
1 parent fe9d940 commit 8eeed3d

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ lint.ignore = [
126126
"PLR0913",
127127
"PLR2004",
128128
"PLW2901",
129-
"PT004",
130129
"PT012",
131130
"PT013",
132131
"PTH118",

pytest_httpserver/httpserver.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from typing import TYPE_CHECKING
2323
from typing import Any
2424
from typing import ClassVar
25-
from typing import Union
2625

2726
import werkzeug.http
2827
from werkzeug import Request
@@ -46,10 +45,7 @@
4645
URI_DEFAULT = ""
4746
METHOD_ALL = "__ALL"
4847

49-
HEADERS_T = Union[
50-
Mapping[str, str | Iterable[str]],
51-
Iterable[tuple[str, str]],
52-
]
48+
HEADERS_T = Mapping[str, str | Iterable[str]] | Iterable[tuple[str, str]]
5349

5450
HVMATCHER_T = Callable[[str, str | None, str], bool]
5551

0 commit comments

Comments
 (0)