Typová anotace body_resitelu(do=…)
This commit is contained in:
parent
ef0f07d389
commit
442d2a20f4
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue