Skip to content

Commit 5745bab

Browse files
committed
Apply overloads
1 parent 83369b1 commit 5745bab

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

stdlib/configparser.pyi

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import sys
2-
from _typeshed import MaybeNone, StrOrBytesPath, SupportsWrite
2+
from _typeshed import GenericPath, MaybeNone, StrOrBytesPath, SupportsWrite
33
from collections.abc import Callable, ItemsView, Iterable, Iterator, Mapping, MutableMapping, Sequence
44
from re import Pattern
5-
from typing import Any, ClassVar, Final, Literal, TypeVar, overload, type_check_only
5+
from typing import Any, AnyStr, ClassVar, Final, Literal, TypeVar, overload, type_check_only
66
from typing_extensions import TypeAlias, deprecated
77

88
if sys.version_info >= (3, 14):
@@ -269,6 +269,9 @@ 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+
@overload
273+
def read(self, filenames: GenericPath[AnyStr] | Iterable[GenericPath[AnyStr]], encoding: str | None = None) -> list[AnyStr]: ...
274+
@overload
272275
def read(self, filenames: StrOrBytesPath | Iterable[StrOrBytesPath], encoding: str | None = None) -> list[str | bytes]: ...
273276
def read_file(self, f: Iterable[str], source: str | None = None) -> None: ...
274277
def read_string(self, string: str, source: str = "<string>") -> None: ...

0 commit comments

Comments
 (0)