Typová anotace body_resitelu(do=…)

This commit is contained in:
Pavel "LEdoian" Turinsky 2022-10-10 22:30:33 +02:00
parent ef0f07d389
commit 442d2a20f4

View file

@ -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,
)
)