lint: various non-semantic fixes
bumping fail-under for pylint to 9.72
This commit is contained in:
parent
7a54e4ea96
commit
f6452cb4fa
14 changed files with 47 additions and 29 deletions
|
@ -16,10 +16,10 @@ bp = Blueprint("webhook", __name__)
|
|||
|
||||
|
||||
@bp.app_template_filter("webhook_format_name")
|
||||
def webhook_format_name(format: str) -> str:
|
||||
if format == "telegram":
|
||||
def webhook_format_name(key: str) -> str:
|
||||
if key == "telegram":
|
||||
return "Telegram"
|
||||
if format == "matrix":
|
||||
if key == "matrix":
|
||||
return "Matrix"
|
||||
return "Unknown"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue