generator: fix some type annotations
This commit is contained in:
parent
6cb6cc3f78
commit
1432b5d1a2
2 changed files with 3 additions and 3 deletions
|
@ -107,7 +107,7 @@ def spec_render_crate(
|
|||
rpmautospec: bool,
|
||||
auto_changelog_entry: bool,
|
||||
date: Optional[time.struct_time] = None,
|
||||
packager: str,
|
||||
packager: Optional[str],
|
||||
):
|
||||
template = spec_file_template("crate.spec")
|
||||
|
||||
|
@ -268,7 +268,7 @@ def spec_render_workspace(
|
|||
rpmautospec: bool,
|
||||
auto_changelog_entry: bool,
|
||||
date: Optional[time.struct_time] = None,
|
||||
packager: str,
|
||||
packager: Optional[str],
|
||||
) -> str:
|
||||
template = spec_file_template("workspace.spec")
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ def guess_main_package(metadata: Metadata, hint: Optional[str] = None, interacti
|
|||
|
||||
|
||||
def package_uses_rust_1_60_feature_syntax(features: dict[str, list[str]]) -> bool:
|
||||
for (name, deps) in features.items():
|
||||
for name, deps in features.items():
|
||||
for dep in deps:
|
||||
if "?/" in dep:
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue