Skip to content

Commit 6e50bb7

Browse files
authored
[configparser] Narrow RawConfigParser.values() to SectionProxy (#16238)
1 parent 2e4c722 commit 6e50bb7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎stdlib/configparser.pyi‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from _typeshed import BytesPath, GenericPath, MaybeNone, StrOrBytesPath, StrPath, SupportsWrite
3-
from collections.abc import Callable, ItemsView, Iterable, Iterator, Mapping, MutableMapping, Sequence
3+
from collections.abc import Callable, ItemsView, Iterable, Iterator, Mapping, MutableMapping, Sequence, ValuesView
44
from re import Pattern
55
from typing import Any, AnyStr, ClassVar, Final, Literal, TypeAlias, TypeVar, overload, type_check_only
66
from typing_extensions import deprecated
@@ -333,6 +333,7 @@ class RawConfigParser(_Parser):
333333
@overload
334334
def items(self, section: _SectionName, raw: bool = False, vars: _Section | None = None) -> list[tuple[str, str]]: ...
335335

336+
def values(self) -> ValuesView[SectionProxy]: ...
336337
def set(self, section: _SectionName, option: str, value: str | None = None) -> None: ...
337338
def write(self, fp: SupportsWrite[str], space_around_delimiters: bool = True) -> None: ...
338339
def remove_option(self, section: _SectionName, option: str) -> bool: ...

0 commit comments

Comments
 (0)