mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-22 02:52:07 +08:00
Remove Python 3.6 branches from typeshed (#8269)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import StrOrBytesPath, StrPath, SupportsWrite
|
||||
from _typeshed import StrOrBytesPath, SupportsWrite
|
||||
from collections.abc import Callable, ItemsView, Iterable, Iterator, Mapping, MutableMapping, Sequence
|
||||
from typing import Any, ClassVar, Pattern, TypeVar, overload
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
@@ -34,11 +34,6 @@ _ConverterCallback: TypeAlias = Callable[[str], Any]
|
||||
_ConvertersMap: TypeAlias = dict[str, _ConverterCallback]
|
||||
_T = TypeVar("_T")
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
_Path: TypeAlias = StrOrBytesPath
|
||||
else:
|
||||
_Path: TypeAlias = StrPath
|
||||
|
||||
DEFAULTSECT: Literal["DEFAULT"]
|
||||
MAX_INTERPOLATION_DEPTH: Literal[10]
|
||||
|
||||
@@ -110,7 +105,7 @@ class RawConfigParser(_Parser):
|
||||
def has_section(self, section: str) -> bool: ...
|
||||
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: StrOrBytesPath | Iterable[StrOrBytesPath], 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: ...
|
||||
|
||||
Reference in New Issue
Block a user