[+] improve typing
This commit is contained in:
parent
91af45c582
commit
cc506baa9e
@ -20,6 +20,10 @@ from typing import (
|
||||
MutableMapping,
|
||||
)
|
||||
|
||||
from typing_extensions import (
|
||||
cast,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@dataclasses.dataclass
|
||||
@ -158,7 +162,7 @@ class CLI(abc.ABC):
|
||||
dependencies = sum([
|
||||
pyproject.dependencies[o]
|
||||
for o in features
|
||||
], [])
|
||||
], cast(list[str], []))
|
||||
|
||||
pip_find_links : list[pathlib.Path] = []
|
||||
|
||||
@ -178,7 +182,7 @@ class CLI(abc.ABC):
|
||||
*sum([
|
||||
['-f', str(o),]
|
||||
for o in pip_find_links
|
||||
], []),
|
||||
], cast(list[str], [])),
|
||||
# '-f', str(pathlib.Path(__file__).parent / 'deps' / 'dist'),
|
||||
'--offline',
|
||||
*dependencies,
|
||||
@ -599,7 +603,7 @@ class CLI(abc.ABC):
|
||||
dependencies = sum([
|
||||
pyproject.dependencies[o]
|
||||
for o in options.features
|
||||
], [])
|
||||
], cast(list[str], []))
|
||||
|
||||
pip_find_links : list[pathlib.Path] = []
|
||||
|
||||
@ -641,7 +645,7 @@ class CLI(abc.ABC):
|
||||
*sum([
|
||||
['-f', str(o),]
|
||||
for o in pip_find_links
|
||||
], []),
|
||||
], cast(list[str], [])),
|
||||
'--generate-hashes',
|
||||
str(requirements_name_get_res.not_compiled),
|
||||
'-o',
|
||||
|
Loading…
Reference in New Issue
Block a user