mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Stubgen assorted stdlib modules
This commit is contained in:
26
stdlib/3/mimetypes.pyi
Normal file
26
stdlib/3/mimetypes.pyi
Normal file
@@ -0,0 +1,26 @@
|
||||
# Stubs for mimetypes (Python 3.5)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class MimeTypes:
|
||||
encodings_map = ... # type: Any
|
||||
suffix_map = ... # type: Any
|
||||
types_map = ... # type: Any
|
||||
types_map_inv = ... # type: Any
|
||||
def __init__(self, filenames=..., strict=True): ...
|
||||
def add_type(self, type, ext, strict=True): ...
|
||||
def guess_type(self, url, strict=True): ...
|
||||
def guess_all_extensions(self, type, strict=True): ...
|
||||
def guess_extension(self, type, strict=True): ...
|
||||
def read(self, filename, strict=True): ...
|
||||
def readfp(self, fp, strict=True): ...
|
||||
def read_windows_registry(self, strict=True): ...
|
||||
|
||||
def guess_type(url, strict=True): ...
|
||||
def guess_all_extensions(type, strict=True): ...
|
||||
def guess_extension(type, strict=True): ...
|
||||
def add_type(type, ext, strict=True): ...
|
||||
def init(files=None): ...
|
||||
def read_mime_types(file): ...
|
||||
Reference in New Issue
Block a user