Make vars arguments Optional, as they default to None (#2853)

Closes #2847
This commit is contained in:
Vasily Zakharov
2019-03-11 17:12:35 +03:00
committed by Sebastian Rittau
parent 4856458251
commit 08555f80d1
2 changed files with 13 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, IO, Sequence, Tuple, Union, List, Dict, Protocol
from typing import Any, IO, Sequence, Tuple, Union, List, Dict, Protocol, Optional
DEFAULTSECT = ... # type: str
MAX_INTERPOLATION_DEPTH = ... # type: int
@@ -86,8 +86,8 @@ class RawConfigParser:
class ConfigParser(RawConfigParser):
_KEYCRE = ... # type: Any
def get(self, section: str, option: str, raw: bool = ..., vars: dict = ...) -> Any: ...
def items(self, section: str, raw: bool = ..., vars: dict = ...) -> List[Tuple[str, Any]]: ...
def get(self, section: str, option: str, raw: bool = ..., vars: Optional[dict] = ...) -> Any: ...
def items(self, section: str, raw: bool = ..., vars: Optional[dict] = ...) -> List[Tuple[str, Any]]: ...
def _interpolate(self, section: str, option: str, rawval: Any, vars: Any) -> str: ...
def _interpolation_replace(self, match: Any) -> str: ...