mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-03 00:22:44 +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
@@ -5,7 +5,7 @@ from typing import overload, Any, Dict, IO, List, Optional, Tuple, Union
|
||||
@overload
|
||||
def get_config_vars() -> Dict[str, Any]: ...
|
||||
@overload
|
||||
def get_config_vars(*args: str) -> List[Any]: ...
|
||||
def get_config_vars(arg: str, *args: str) -> List[Any]: ...
|
||||
def get_config_var(name: str) -> Optional[str]: ...
|
||||
def get_scheme_names() -> Tuple[str, ...]: ...
|
||||
def get_path_names() -> Tuple[str, ...]: ...
|
||||
|
||||
Reference in New Issue
Block a user