mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
types-pyinstaller: no longer subclass "Any" (#9495)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user