From 442d2a20f40ec6bd942de3d3794702bfaab49535 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Mon, 10 Oct 2022 22:30:33 +0200 Subject: [PATCH] =?UTF-8?q?Typov=C3=A1=20anotace=20body=5Fresitelu(do=3D?= =?UTF-8?q?=E2=80=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vysledkovky/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vysledkovky/utils.py b/vysledkovky/utils.py index 0e5a3877..7fbb69f1 100644 --- a/vysledkovky/utils.py +++ b/vysledkovky/utils.py @@ -1,5 +1,6 @@ import abc from functools import cached_property +from typing import Union # TODO: s pythonem 3.10 přepsat na '|' import seminar.models as m from django.db.models import Q, Sum @@ -17,7 +18,7 @@ class FixedIterator: def body_resitelu( - za=None, + za: Union[m.Cislo, m.Rocnik, None] = None, do: m.Deadline = None, od: m.Deadline = None, jen_verejne: bool = True, @@ -489,4 +490,4 @@ class VysledkovkaDoTeXu(VysledkovkaCisla): deadline_body__deadline__gt=self.od_deadlinu.deadline, deadline_body__deadline__lte=self.do_deadlinu.deadline, body__isnull=False, - ) \ No newline at end of file + )