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:
Sebastian Rittau
2018-07-14 04:23:23 +02:00
committed by Jelle Zijlstra
parent cc45366ca5
commit dc9f9db77f
8 changed files with 6 additions and 13 deletions

View File

@@ -1 +0,0 @@
...

View File

@@ -1 +0,0 @@
...

View File

@@ -1 +0,0 @@
...

View File

@@ -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