Skip to content
Snippets Groups Projects
Verified Commit c802c4b3 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix type annotations.

parent 3a637a0b
No related branches found
No related tags found
No related merge requests found
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.
......
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