summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/third_party/websockets/src/websockets/typing.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/tools/third_party/websockets/src/websockets/typing.py')
-rw-r--r--testing/web-platform/tests/tools/third_party/websockets/src/websockets/typing.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/web-platform/tests/tools/third_party/websockets/src/websockets/typing.py b/testing/web-platform/tests/tools/third_party/websockets/src/websockets/typing.py
index e672ba0069..cc3e3ec0d9 100644
--- a/testing/web-platform/tests/tools/third_party/websockets/src/websockets/typing.py
+++ b/testing/web-platform/tests/tools/third_party/websockets/src/websockets/typing.py
@@ -1,5 +1,6 @@
from __future__ import annotations
+import http
import logging
from typing import List, NewType, Optional, Tuple, Union
@@ -7,6 +8,7 @@ from typing import List, NewType, Optional, Tuple, Union
__all__ = [
"Data",
"LoggerLike",
+ "StatusLike",
"Origin",
"Subprotocol",
"ExtensionName",
@@ -30,6 +32,11 @@ LoggerLike = Union[logging.Logger, logging.LoggerAdapter]
"""Types accepted where a :class:`~logging.Logger` is expected."""
+StatusLike = Union[http.HTTPStatus, int]
+"""
+Types accepted where an :class:`~http.HTTPStatus` is expected."""
+
+
Origin = NewType("Origin", str)
"""Value of a ``Origin`` header."""