mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -12,18 +12,18 @@ def init(files: Optional[Sequence[str]] = ...) -> None: ...
|
||||
def read_mime_types(filename: str) -> Optional[Dict[str, str]]: ...
|
||||
def add_type(type: str, ext: str, strict: bool = ...) -> None: ...
|
||||
|
||||
inited = ... # type: bool
|
||||
knownfiles = ... # type: List[str]
|
||||
suffix_map = ... # type: Dict[str, str]
|
||||
encodings_map = ... # type: Dict[str, str]
|
||||
types_map = ... # type: Dict[str, str]
|
||||
common_types = ... # type: Dict[str, str]
|
||||
inited: bool
|
||||
knownfiles: List[str]
|
||||
suffix_map: Dict[str, str]
|
||||
encodings_map: Dict[str, str]
|
||||
types_map: Dict[str, str]
|
||||
common_types: Dict[str, str]
|
||||
|
||||
class MimeTypes:
|
||||
suffix_map = ... # type: Dict[str, str]
|
||||
encodings_map = ... # type: Dict[str, str]
|
||||
types_map = ... # type: Tuple[Dict[str, str], Dict[str, str]]
|
||||
types_map_inv = ... # type: Tuple[Dict[str, str], Dict[str, str]]
|
||||
suffix_map: Dict[str, str]
|
||||
encodings_map: Dict[str, str]
|
||||
types_map: Tuple[Dict[str, str], Dict[str, str]]
|
||||
types_map_inv: Tuple[Dict[str, str], Dict[str, str]]
|
||||
def __init__(self, filenames: Tuple[str, ...] = ...,
|
||||
strict: bool = ...) -> None: ...
|
||||
def guess_extension(self, type: str,
|
||||
|
||||
Reference in New Issue
Block a user