lint: remove redundant type ignores after mypy upgrade

This commit is contained in:
Iain Learmonth 2023-06-25 13:30:41 +01:00
parent cd81807339
commit e0c7369d39
2 changed files with 2 additions and 2 deletions

View file

@ -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",