mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Remove Python 3.6 branches from typeshed (#8269)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user