Skip to content

Commit

Permalink
chg: [typing] Added missing mypy annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Jul 26, 2024
1 parent 0b36721 commit 478cfc1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions website/web/views/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

from __future__ import annotations

from typing import Any
from typing import Tuple

import sys
import logging
import logging.config
Expand Down Expand Up @@ -39,15 +42,15 @@


@application.errorhandler(404)
def page_not_found(error):
def page_not_found(error: Any) -> tuple[str, int]:
return render_template("errors/404.html"), 404

@application.errorhandler(500)
def internal_server_error_500(error):
def internal_server_error_500(error: Any) -> tuple[str, int]:
return render_template("errors/500.html"), 500

@application.errorhandler(503)
def internal_server_error_503(error):
def internal_server_error_503(error: Any) -> tuple[str, int]:
return render_template("errors/503.html"), 503


Expand Down

0 comments on commit 478cfc1

Please sign in to comment.