Reduce use of deprecated typing aliases (#6358)

This commit is contained in:
Alex Waygood
2021-11-23 09:56:43 +00:00
committed by GitHub
parent 7e836db2f3
commit c685c2d6c6
19 changed files with 64 additions and 61 deletions
+2 -2
View File
@@ -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 = ...