From c802c4b34f97e917a0ba9e1a1381dbc4d1adbf32 Mon Sep 17 00:00:00 2001 From: Dominik George <nik@naturalnet.de> Date: Wed, 20 Nov 2019 00:13:39 +0100 Subject: [PATCH] Fix type annotations. --- biscuit/apps/alsijil/model_extensions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/biscuit/apps/alsijil/model_extensions.py b/biscuit/apps/alsijil/model_extensions.py index d0470109f..3b36b00a6 100644 --- a/biscuit/apps/alsijil/model_extensions.py +++ b/biscuit/apps/alsijil/model_extensions.py @@ -1,5 +1,4 @@ from datetime import date -from typing import Optional from django.db.models import Exists, F, OuterRef @@ -11,7 +10,7 @@ from .models import PersonalNote @Person.method -def mark_absent(self, day: date, starting_period: Optional[int] = 0, absent=True, excused=False, remarks=''): +def mark_absent(self, day: date, starting_period: int = 0, absent: bool = True, bool = False, remarks: str = ''): """ Mark a person absent for all lessons in a day, optionally starting with a selected period number. -- GitLab