mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-24 09:18:40 +08:00
Reduce use of deprecated typing aliases (#6358)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
|
||||
from typing import Any, Iterable, Mapping, Set, Text
|
||||
from typing import Any, Iterable, Mapping, Text
|
||||
|
||||
from ..middleware.proxy_fix import ProxyFix as ProxyFix
|
||||
|
||||
@@ -18,7 +18,7 @@ class PathInfoFromRequestUriFix(object):
|
||||
|
||||
class HeaderRewriterFix(object):
|
||||
app: WSGIApplication
|
||||
remove_headers: Set[Text]
|
||||
remove_headers: set[Text]
|
||||
add_headers: list[Text]
|
||||
def __init__(
|
||||
self, app: WSGIApplication, remove_headers: Iterable[Text] | None = ..., add_headers: Iterable[Text] | None = ...
|
||||
|
||||
Reference in New Issue
Block a user