mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-05 14:44:18 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
@@ -1,20 +1,11 @@
|
||||
# https://pyinstaller.org/en/stable/hooks.html#module-PyInstaller.utils.hooks.conda
|
||||
|
||||
import sys
|
||||
from _typeshed import StrOrBytesPath
|
||||
from collections.abc import Iterable
|
||||
from pathlib import Path, PurePosixPath
|
||||
from importlib.metadata import PackagePath as _PackagePath
|
||||
from pathlib import Path
|
||||
from typing_extensions import Final, TypedDict
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from importlib.metadata import PackagePath as _PackagePath
|
||||
else:
|
||||
# Same as importlib_metadata.PackagePath
|
||||
class _PackagePath(PurePosixPath):
|
||||
def read_text(self, encoding: str = "utf-8") -> str: ...
|
||||
def read_binary(self) -> str: ...
|
||||
def locate(self) -> Path: ...
|
||||
|
||||
CONDA_ROOT: Final[Path]
|
||||
CONDA_META_DIR: Final[Path]
|
||||
PYTHONPATH_PREFIXES: Final[list[Path]]
|
||||
|
||||
Reference in New Issue
Block a user