From f775ef3bc5fb884258338618eaecaf20bf17fc6a Mon Sep 17 00:00:00 2001 From: lionel-github Date: Mon, 2 Jan 2017 15:36:03 -0800 Subject: [PATCH] Fix RawConfigParser.read stub for Python 2. (#808) Bring it in line with the stub used in the Python 3 version. --- stdlib/2/ConfigParser.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2/ConfigParser.pyi b/stdlib/2/ConfigParser.pyi index 0dcc2a7e9..67b034025 100644 --- a/stdlib/2/ConfigParser.pyi +++ b/stdlib/2/ConfigParser.pyi @@ -1,4 +1,4 @@ -from typing import Any, Tuple, IO +from typing import Any, IO, Sequence, Tuple, Union __all__ = ... # type: list[str] DEFAULTSECT = ... # type: str @@ -66,7 +66,7 @@ class RawConfigParser: def add_section(self, section: str) -> None: ... def has_section(self, section: str) -> bool: ... def options(self, section: str) -> list[str]: ... - def read(self, filenames: str) -> list[str]: ... + def read(self, filenames: Union[str, Sequence[str]]) -> list[str]: ... def readfp(self, fp: IO[str], filename: str = ...) -> None: ... def get(self, section: str, option: str) -> str: ... def items(self, section: str) -> list[Tuple[Any, Any]]: ...