generator: fix some type annotations

This commit is contained in:
Fabio Valentini 2023-09-30 15:35:10 +02:00
parent 6cb6cc3f78
commit 1432b5d1a2
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF
2 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ def spec_render_crate(
rpmautospec: bool, rpmautospec: bool,
auto_changelog_entry: bool, auto_changelog_entry: bool,
date: Optional[time.struct_time] = None, date: Optional[time.struct_time] = None,
packager: str, packager: Optional[str],
): ):
template = spec_file_template("crate.spec") template = spec_file_template("crate.spec")
@ -268,7 +268,7 @@ def spec_render_workspace(
rpmautospec: bool, rpmautospec: bool,
auto_changelog_entry: bool, auto_changelog_entry: bool,
date: Optional[time.struct_time] = None, date: Optional[time.struct_time] = None,
packager: str, packager: Optional[str],
) -> str: ) -> str:
template = spec_file_template("workspace.spec") template = spec_file_template("workspace.spec")

View file

@ -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: 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: for dep in deps:
if "?/" in dep: if "?/" in dep:
return True return True