mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 20:31:32 +08:00
Assorted thirdparty fixes (#2332)
* pkg_resources.Distribution: Fix self arguments * docutils: Remove spurious ellipses * Add self argument to markupsafe.Markup.format() While the actual signature is also "def format(*args, **kwargs)", the implementation extracts "self" from "args" as first step. * werkzeug: Remove methods not present during runtime UpdateDictMixin.calls_update() and EnvironBuilder.form_property() get deleted while constructing the respective class. * requests: Add missing self argument
This commit is contained in:
committed by
Jelle Zijlstra
parent
cc45366ca5
commit
dc9f9db77f
1
third_party/3/docutils/__init__.pyi
vendored
1
third_party/3/docutils/__init__.pyi
vendored
@@ -1 +0,0 @@
|
||||
...
|
||||
|
||||
1
third_party/3/docutils/parsers/__init__.pyi
vendored
1
third_party/3/docutils/parsers/__init__.pyi
vendored
@@ -1 +0,0 @@
|
||||
...
|
||||
|
||||
1
third_party/3/docutils/parsers/rst/nodes.pyi
vendored
1
third_party/3/docutils/parsers/rst/nodes.pyi
vendored
@@ -1 +0,0 @@
|
||||
...
|
||||
|
||||
10
third_party/3/pkg_resources.pyi
vendored
10
third_party/3/pkg_resources.pyi
vendored
@@ -168,15 +168,13 @@ class Distribution(IResourceProvider, IMetadataProvider):
|
||||
def clone(self, **kw: Union[str, int, None]) -> Requirement: ...
|
||||
def egg_name(self) -> str: ...
|
||||
def __cmp__(self, other: Any) -> bool: ...
|
||||
def get_entry_info(dist: _EPDistType, group: str,
|
||||
def get_entry_info(self, group: str,
|
||||
name: str) -> Optional[EntryPoint]: ...
|
||||
@overload
|
||||
def get_entry_map(dist: _EPDistType) \
|
||||
-> Dict[str, Dict[str, EntryPoint]]: ...
|
||||
def get_entry_map(self) -> Dict[str, Dict[str, EntryPoint]]: ...
|
||||
@overload
|
||||
def get_entry_map(dist: _EPDistType, group: str) \
|
||||
-> Dict[str, EntryPoint]: ...
|
||||
def load_entry_point(dist: _EPDistType, group: str, name: str) -> None: ...
|
||||
def get_entry_map(self, group: str) -> Dict[str, EntryPoint]: ...
|
||||
def load_entry_point(self, group: str, name: str) -> None: ...
|
||||
|
||||
EGG_DIST = ... # type: int
|
||||
BINARY_DIST = ... # type: int
|
||||
|
||||
Reference in New Issue
Block a user