mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-30 06:35:22 +08:00
Remove Python 3.6 branches from typeshed (#8269)
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import sys
|
||||
from _typeshed import StrOrBytesPath, StrPath
|
||||
from _typeshed import StrOrBytesPath
|
||||
from collections.abc import Callable, Sequence
|
||||
from configparser import RawConfigParser
|
||||
from threading import Thread
|
||||
from typing import IO, Any, Pattern
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from . import _Level
|
||||
|
||||
@@ -13,11 +12,6 @@ if sys.version_info >= (3, 8):
|
||||
else:
|
||||
from typing_extensions import Literal, TypedDict
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
_Path: TypeAlias = StrOrBytesPath
|
||||
else:
|
||||
_Path: TypeAlias = StrPath
|
||||
|
||||
DEFAULT_LOGGING_CONFIG_PORT: int
|
||||
RESET_ERROR: int # undocumented
|
||||
IDENTIFIER: Pattern[str] # undocumented
|
||||
@@ -53,7 +47,7 @@ def dictConfig(config: _DictConfigArgs | dict[str, Any]) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
def fileConfig(
|
||||
fname: _Path | IO[str] | RawConfigParser,
|
||||
fname: StrOrBytesPath | IO[str] | RawConfigParser,
|
||||
defaults: dict[str, str] | None = ...,
|
||||
disable_existing_loggers: bool = ...,
|
||||
encoding: str | None = ...,
|
||||
@@ -61,7 +55,9 @@ if sys.version_info >= (3, 10):
|
||||
|
||||
else:
|
||||
def fileConfig(
|
||||
fname: _Path | IO[str] | RawConfigParser, defaults: dict[str, str] | None = ..., disable_existing_loggers: bool = ...
|
||||
fname: StrOrBytesPath | IO[str] | RawConfigParser,
|
||||
defaults: dict[str, str] | None = ...,
|
||||
disable_existing_loggers: bool = ...,
|
||||
) -> None: ...
|
||||
|
||||
def valid_ident(s: str) -> Literal[True]: ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user