Skip to content

Commit 83369b1

Browse files
committed
Fix configparser RawConfigParser.read: returns list[str | bytes]
1 parent dc981ee commit 83369b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/configparser.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class RawConfigParser(_Parser):
269269
def has_section(self, section: _SectionName) -> bool: ...
270270
def options(self, section: _SectionName) -> list[str]: ...
271271
def has_option(self, section: _SectionName, option: str) -> bool: ...
272-
def read(self, filenames: StrOrBytesPath | Iterable[StrOrBytesPath], encoding: str | None = None) -> list[str]: ...
272+
def read(self, filenames: StrOrBytesPath | Iterable[StrOrBytesPath], encoding: str | None = None) -> list[str | bytes]: ...
273273
def read_file(self, f: Iterable[str], source: str | None = None) -> None: ...
274274
def read_string(self, string: str, source: str = "<string>") -> None: ...
275275
def read_dict(self, dictionary: Mapping[str, Mapping[str, Any]], source: str = "<dict>") -> None: ...

0 commit comments

Comments
 (0)