mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
Created pyi for SimpleHTTPServer [Python 2.7] (#1186)
This commit is contained in:
committed by
Jelle Zijlstra
parent
e5a0c46004
commit
f71ea30cac
16
stdlib/2/SimpleHTTPServer.pyi
Normal file
16
stdlib/2/SimpleHTTPServer.pyi
Normal file
@@ -0,0 +1,16 @@
|
||||
# Stubs for SimpleHTTPServer (Python 2)
|
||||
|
||||
from typing import Any, AnyStr, IO, Mapping, Optional, Union
|
||||
import BaseHTTPServer
|
||||
from StringIO import StringIO
|
||||
|
||||
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
||||
server_version = ... # type: str
|
||||
def do_GET(self) -> None: ...
|
||||
def do_HEAD(self) -> None: ...
|
||||
def send_head(self) -> Optional[IO[str]]: ...
|
||||
def list_directory(self, path: Union[str, unicode]) -> Optional[StringIO]: ...
|
||||
def translate_path(self, path: AnyStr) -> AnyStr: ...
|
||||
def copyfile(self, source: IO[AnyStr], outputfile: IO[AnyStr]): ...
|
||||
def guess_type(self, path: Union[str, unicode]) -> str: ...
|
||||
extensions_map = ... # type: Mapping[str, str]
|
||||
Reference in New Issue
Block a user