lint: remove redundant type ignores after mypy upgrade
This commit is contained in:
parent
cd81807339
commit
e0c7369d39
2 changed files with 2 additions and 2 deletions
|
@ -219,7 +219,7 @@ def cloud_account_new() -> ResponseReturnValue:
|
|||
form = NewCloudAccountForm()
|
||||
form.provider.choices = sorted([
|
||||
(provider.name, provider.description) for provider in CloudProvider
|
||||
], key=lambda p: p[1].lower()) # type: ignore[no-any-return]
|
||||
], key=lambda p: p[1].lower())
|
||||
if form.validate_on_submit():
|
||||
return redirect(url_for("portal.cloud.cloud_account_new_for", provider=form.provider.data))
|
||||
return render_template("new.html.j2",
|
||||
|
|
|
@ -102,7 +102,7 @@ class EotkAWSAutomation(TerraformAutomation):
|
|||
).order_by(Group.id).all():
|
||||
with DeterministicZip(os.path.join(self.working_dir, f"{group.id}.zip")) as dzip:
|
||||
dzip.add_file("sites.conf", eotk_configuration(group).encode('utf-8'))
|
||||
for onion in sorted(group.onions, key=lambda o: o.onion_name): # type: ignore[no-any-return]
|
||||
for onion in sorted(group.onions, key=lambda o: o.onion_name):
|
||||
dzip.add_file(f"{onion.onion_name}.v3pub.key", onion.onion_public_key)
|
||||
dzip.add_file(f"{onion.onion_name}.v3sec.key", onion.onion_private_key)
|
||||
dzip.add_file(f"{onion.onion_name[:20]}-v3.cert", onion.tls_public_key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue