Remove Python 3.7 branches (#11238)

This commit is contained in:
Sebastian Rittau
2024-01-05 11:39:39 +01:00
committed by GitHub
parent 4e62577002
commit 23604858a6
122 changed files with 1952 additions and 3800 deletions

View File

@@ -1,4 +1,3 @@
import sys
from _typeshed import StrPath
from collections.abc import Sequence
from typing import IO
@@ -19,12 +18,7 @@ __all__ = [
"common_types",
]
if sys.version_info >= (3, 8):
def guess_type(url: StrPath, strict: bool = True) -> tuple[str | None, str | None]: ...
else:
def guess_type(url: str, strict: bool = True) -> tuple[str | None, str | None]: ...
def guess_type(url: StrPath, strict: bool = True) -> tuple[str | None, str | None]: ...
def guess_all_extensions(type: str, strict: bool = True) -> list[str]: ...
def guess_extension(type: str, strict: bool = True) -> str | None: ...
def init(files: Sequence[str] | None = None) -> None: ...
@@ -45,11 +39,7 @@ class MimeTypes:
types_map_inv: tuple[dict[str, str], dict[str, str]]
def __init__(self, filenames: tuple[str, ...] = (), strict: bool = True) -> None: ...
def guess_extension(self, type: str, strict: bool = True) -> str | None: ...
if sys.version_info >= (3, 8):
def guess_type(self, url: StrPath, strict: bool = True) -> tuple[str | None, str | None]: ...
else:
def guess_type(self, url: str, strict: bool = True) -> tuple[str | None, str | None]: ...
def guess_type(self, url: StrPath, strict: bool = True) -> tuple[str | None, str | None]: ...
def guess_all_extensions(self, type: str, strict: bool = True) -> list[str]: ...
def read(self, filename: str, strict: bool = True) -> None: ...
def readfp(self, fp: IO[str], strict: bool = True) -> None: ...