Skip to content

Commit 006c2ea

Browse files
committed
fix overload-cannot-match
1 parent 5f01343 commit 006c2ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stdlib/configparser.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,13 @@ class RawConfigParser(_Parser):
270270
def options(self, section: _SectionName) -> list[str]: ...
271271
def has_option(self, section: _SectionName, option: str) -> bool: ...
272272
@overload
273+
def read(self, filenames: GenericPath[AnyStr], encoding: str | None = None) -> list[AnyStr]: ...
274+
@overload
273275
def read(
274-
self, filenames: GenericPath[AnyStr] | Iterable[GenericPath[AnyStr]], encoding: str | None = None
276+
self, filenames: Iterable[GenericPath[AnyStr]], encoding: str | None = None
275277
) -> list[AnyStr]: ...
276278
@overload
277-
def read(self, filenames: StrOrBytesPath | Iterable[StrOrBytesPath], encoding: str | None = None) -> list[str | bytes]: ...
279+
def read(self, filenames: Iterable[StrOrBytesPath], encoding: str | None = None) -> list[str | bytes]: ...
278280
def read_file(self, f: Iterable[str], source: str | None = None) -> None: ...
279281
def read_string(self, string: str, source: str = "<string>") -> None: ...
280282
def read_dict(self, dictionary: Mapping[str, Mapping[str, Any]], source: str = "<dict>") -> None: ...

0 commit comments

Comments
 (0)