Skip to content
Snippets Groups Projects
Unverified Commit 7a51426b authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add type hints. Advances BiscuIT-ng#20.

parent a9df9001
No related branches found
No related tags found
No related merge requests found
from typing import Optional
from django.contrib.auth.decorators import login_required
from django.http import HttpRequest, HttpResponse
from django.shortcuts import render
from django.utils.translation import gettext_lazy as _
......@@ -7,7 +10,7 @@ from biscuit.apps.chronos.util import current_lesson_periods, current_week
@login_required
def lesson(request, week=None, period_id=None):
def lesson(request: HttpRequest, week: Optional[int] = None, period_id: Optional[int] = None) -> HttpResponse:
context = {}
if week and period_id:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment