File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
stubs/pyinstaller/PyInstaller/utils/hooks Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 3
3
import sys
4
4
from _typeshed import StrOrBytesPath
5
5
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
9
8
10
9
if sys .version_info >= (3 , 8 ):
11
10
from importlib .metadata import PackagePath as _PackagePath
12
11
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 : ...
14
17
15
18
CONDA_ROOT : Path
16
19
CONDA_META_DIR : Path
You can’t perform that action at this time.
0 commit comments