mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -3,7 +3,7 @@ import io
|
||||
import socketserver
|
||||
import sys
|
||||
from _typeshed import StrPath, SupportsRead, SupportsWrite
|
||||
from typing import Any, AnyStr, BinaryIO, ClassVar, Dict, List, Mapping, Sequence, Tuple
|
||||
from typing import Any, AnyStr, BinaryIO, ClassVar, Mapping, Sequence, Tuple
|
||||
|
||||
class HTTPServer(socketserver.TCPServer):
|
||||
server_name: str
|
||||
@@ -53,7 +53,7 @@ class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):
|
||||
|
||||
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||
server_version: str
|
||||
extensions_map: Dict[str, str]
|
||||
extensions_map: dict[str, str]
|
||||
if sys.version_info >= (3, 7):
|
||||
def __init__(
|
||||
self, request: bytes, client_address: Tuple[str, int], server: socketserver.BaseServer, directory: str | None = ...
|
||||
@@ -71,7 +71,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||
def executable(path: StrPath) -> bool: ... # undocumented
|
||||
|
||||
class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):
|
||||
cgi_directories: List[str]
|
||||
cgi_directories: list[str]
|
||||
have_fork: bool # undocumented
|
||||
def do_POST(self) -> None: ...
|
||||
def is_cgi(self) -> bool: ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user