http/html stubtest fixes (#5208)

This commit is contained in:
hatal175 authored and GitHub committed 2021-04-12 13:37:09 +02:00
1 parent 7adb0213f7
commit 2ae49e1307
6 files changed
+37 -29

No files matched your search

+1 -2
View File
@@ -1,7 +1,7 @@
import email.message
import socketserver
import sys
from typing import Any, Callable, ClassVar, Dict, List, Mapping, Optional, Sequence, Tuple, Union
from typing import Any, ClassVar, Dict, List, Mapping, Optional, Sequence, Tuple, Union
if sys.version_info >= (3, 7):
from builtins import _PathLike
@@ -9,7 +9,6 @@ if sys.version_info >= (3, 7):
class HTTPServer(socketserver.TCPServer):
server_name: str
server_port: int
def __init__(self, server_address: Tuple[str, int], RequestHandlerClass: Callable[..., BaseHTTPRequestHandler]) -> None: ...
if sys.version_info >= (3, 7):
class ThreadingHTTPServer(socketserver.ThreadingMixIn, HTTPServer):