Remove Python 3.6 branches from typeshed (#8269)

This commit is contained in:
Alex Waygood
2022-07-11 09:55:17 +01:00
committed by GitHub
parent 29c17ffb47
commit edc0ecd857
114 changed files with 1016 additions and 2642 deletions

View File

@@ -1,4 +1,3 @@
import sys
from collections.abc import Callable
from pathlib import Path
from typing import BinaryIO
@@ -10,19 +9,12 @@ _Path: TypeAlias = str | Path | BinaryIO
class ZipAppError(ValueError): ...
if sys.version_info >= (3, 7):
def create_archive(
source: _Path,
target: _Path | None = ...,
interpreter: str | None = ...,
main: str | None = ...,
filter: Callable[[Path], bool] | None = ...,
compressed: bool = ...,
) -> None: ...
else:
def create_archive(
source: _Path, target: _Path | None = ..., interpreter: str | None = ..., main: str | None = ...
) -> None: ...
def create_archive(
source: _Path,
target: _Path | None = ...,
interpreter: str | None = ...,
main: str | None = ...,
filter: Callable[[Path], bool] | None = ...,
compressed: bool = ...,
) -> None: ...
def get_interpreter(archive: _Path) -> str: ...