]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-86178: wsgiref.types: Add missing TypeAlias annotations (GH-91608)
authorSebastian Rittau <srittau@rittau.biz>
Sat, 16 Apr 2022 20:37:02 +0000 (22:37 +0200)
committerGitHub <noreply@github.com>
Sat, 16 Apr 2022 20:37:02 +0000 (13:37 -0700)
Lib/wsgiref/types.py

index 4a519e5682f3c87e00fcc39ebdf00d50ef810f4b..9e74a6c7312b19b051fb67b0c480660964fe01f3 100644 (file)
@@ -13,8 +13,8 @@ __all__ = [
     "FileWrapper",
 ]
 
-_ExcInfo = tuple[type[BaseException], BaseException, TracebackType]
-_OptExcInfo = _ExcInfo | tuple[None, None, None]
+_ExcInfo: TypeAlias = tuple[type[BaseException], BaseException, TracebackType]
+_OptExcInfo: TypeAlias = _ExcInfo | tuple[None, None, None]
 
 class StartResponse(Protocol):
     """start_response() callable as defined in PEP 3333"""