types-pyinstaller: no longer subclass "Any" (#9495)

This commit is contained in:
Avasam
2023-01-11 04:32:54 -05:00
committed by GitHub
parent 28bf5c9ddd
commit 5eb6a692f5

View File

@@ -3,14 +3,17 @@
import sys
from _typeshed import StrOrBytesPath
from collections.abc import Iterable
from pathlib import Path
from typing import Any
from typing_extensions import TypeAlias, TypedDict
from pathlib import Path, PurePosixPath
from typing_extensions import TypedDict
if sys.version_info >= (3, 8):
from importlib.metadata import PackagePath as _PackagePath
else:
_PackagePath: TypeAlias = Any
# Same as importlib_metadata.PackagePath
class _PackagePath(PurePosixPath):
def read_text(self, encoding: str = ...) -> str: ...
def read_binary(self) -> str: ...
def locate(self) -> Path: ...
CONDA_ROOT: Path
CONDA_META_DIR: Path