Skip to content

Commit 5eb6a69

Browse files
authored
types-pyinstaller: no longer subclass "Any" (#9495)
1 parent 28bf5c9 commit 5eb6a69

File tree

1 file changed

+7
-4
lines changed
  • stubs/pyinstaller/PyInstaller/utils/hooks

1 file changed

+7
-4
lines changed

stubs/pyinstaller/PyInstaller/utils/hooks/conda.pyi

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
import sys
44
from _typeshed import StrOrBytesPath
55
from collections.abc import Iterable
6-
from pathlib import Path
7-
from typing import Any
8-
from typing_extensions import TypeAlias, TypedDict
6+
from pathlib import Path, PurePosixPath
7+
from typing_extensions import TypedDict
98

109
if sys.version_info >= (3, 8):
1110
from importlib.metadata import PackagePath as _PackagePath
1211
else:
13-
_PackagePath: TypeAlias = Any
12+
# Same as importlib_metadata.PackagePath
13+
class _PackagePath(PurePosixPath):
14+
def read_text(self, encoding: str = ...) -> str: ...
15+
def read_binary(self) -> str: ...
16+
def locate(self) -> Path: ...
1417

1518
CONDA_ROOT: Path
1619
CONDA_META_DIR: Path

0 commit comments

Comments
 (0)