mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -8,7 +8,6 @@ from typing import (
|
||||
Dict,
|
||||
Iterable,
|
||||
Iterator,
|
||||
List,
|
||||
Mapping,
|
||||
MutableMapping,
|
||||
Optional,
|
||||
@@ -98,12 +97,12 @@ class RawConfigParser(_parser):
|
||||
def __delitem__(self, section: str) -> None: ...
|
||||
def __iter__(self) -> Iterator[str]: ...
|
||||
def defaults(self) -> _section: ...
|
||||
def sections(self) -> List[str]: ...
|
||||
def sections(self) -> list[str]: ...
|
||||
def add_section(self, section: str) -> None: ...
|
||||
def has_section(self, section: str) -> bool: ...
|
||||
def options(self, section: str) -> List[str]: ...
|
||||
def options(self, section: str) -> list[str]: ...
|
||||
def has_option(self, section: str, option: str) -> bool: ...
|
||||
def read(self, filenames: _Path | Iterable[_Path], encoding: str | None = ...) -> List[str]: ...
|
||||
def read(self, filenames: _Path | Iterable[_Path], encoding: str | None = ...) -> list[str]: ...
|
||||
def read_file(self, f: Iterable[str], source: str | None = ...) -> None: ...
|
||||
def read_string(self, string: str, source: str = ...) -> None: ...
|
||||
def read_dict(self, dictionary: Mapping[str, Mapping[str, Any]], source: str = ...) -> None: ...
|
||||
@@ -146,7 +145,7 @@ class RawConfigParser(_parser):
|
||||
@overload
|
||||
def items(self, *, raw: bool = ..., vars: _section | None = ...) -> AbstractSet[Tuple[str, SectionProxy]]: ...
|
||||
@overload
|
||||
def items(self, section: str, raw: bool = ..., vars: _section | None = ...) -> List[Tuple[str, str]]: ...
|
||||
def items(self, section: str, raw: bool = ..., vars: _section | None = ...) -> list[Tuple[str, str]]: ...
|
||||
def set(self, section: str, option: str, value: str | None = ...) -> None: ...
|
||||
def write(self, fp: SupportsWrite[str], space_around_delimiters: bool = ...) -> None: ...
|
||||
def remove_option(self, section: str, option: str) -> bool: ...
|
||||
@@ -237,7 +236,7 @@ class InterpolationSyntaxError(InterpolationError): ...
|
||||
|
||||
class ParsingError(Error):
|
||||
source: str
|
||||
errors: List[Tuple[int, str]]
|
||||
errors: list[Tuple[int, str]]
|
||||
def __init__(self, source: str | None = ..., filename: str | None = ...) -> None: ...
|
||||
def append(self, lineno: int, line: str) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user