[+] improve typing
This commit is contained in:
parent
1dbba925f1
commit
91af45c582
@ -265,14 +265,12 @@ def pyproject_load(
|
||||
module.meson = pathlib.Path(o['meson'])
|
||||
|
||||
if 'tool' in o:
|
||||
assert isinstance(o['tool'], dict)
|
||||
|
||||
assert all([
|
||||
isinstance(o, str)
|
||||
for o in o['tool']
|
||||
])
|
||||
|
||||
module.tool.update(o['tool'])
|
||||
module.tool.update(
|
||||
check_dict(
|
||||
o['tool'],
|
||||
str,
|
||||
)
|
||||
)
|
||||
|
||||
res.modules.append(module)
|
||||
|
||||
@ -381,7 +379,7 @@ def env_bootstrap(
|
||||
pip_find_links_args = sum([
|
||||
['-f', str(o),]
|
||||
for o in pip_find_links
|
||||
], [])
|
||||
], cast(list[str], []))
|
||||
|
||||
features : list[str] = []
|
||||
|
||||
@ -406,7 +404,7 @@ def env_bootstrap(
|
||||
early_dependencies = sum([
|
||||
pyproject.dependencies[o]
|
||||
for o in pyproject.early_features
|
||||
], [])
|
||||
], cast(list[str], []))
|
||||
|
||||
logger.info(dict(
|
||||
requirements_name_get_res=requirements_name_get_res,
|
||||
|
Loading…
Reference in New Issue
Block a user