mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
Rearrange overloads to account for optional arguments (#2150)
Basically, the same thing as [my previous pull request][0], except the fixes are now focusing on functions with overlapping argument counts. [0]: https://github.com/python/typeshed/pull/2138
This commit is contained in:
committed by
Jelle Zijlstra
parent
6a080cd0db
commit
709b193416
4
third_party/3/pkg_resources.pyi
vendored
4
third_party/3/pkg_resources.pyi
vendored
@@ -108,7 +108,7 @@ def get_entry_info(dist: _EPDistType, group: str,
|
||||
@overload
|
||||
def get_entry_map(dist: _EPDistType) -> Dict[str, Dict[str, EntryPoint]]: ...
|
||||
@overload
|
||||
def get_entry_map(dist: _EPDistType, group: str = ...) -> Dict[str, EntryPoint]: ...
|
||||
def get_entry_map(dist: _EPDistType, group: str) -> Dict[str, EntryPoint]: ...
|
||||
|
||||
class EntryPoint:
|
||||
name = ... # type: str
|
||||
@@ -174,7 +174,7 @@ class Distribution(IResourceProvider, IMetadataProvider):
|
||||
def get_entry_map(dist: _EPDistType) \
|
||||
-> Dict[str, Dict[str, EntryPoint]]: ...
|
||||
@overload
|
||||
def get_entry_map(dist: _EPDistType, group: str = ...) \
|
||||
def get_entry_map(dist: _EPDistType, group: str) \
|
||||
-> Dict[str, EntryPoint]: ...
|
||||
def load_entry_point(dist: _EPDistType, group: str, name: str) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user