add: typová anotace
This commit is contained in:
parent
0e0bd76f28
commit
246f63d6e0
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
import abc
|
import abc
|
||||||
from functools import cached_property
|
from functools import cached_property
|
||||||
from typing import Union # TODO: s pythonem 3.10 přepsat na '|'
|
from typing import Union, Iterable # TODO: s pythonem 3.10 přepsat na '|'
|
||||||
|
|
||||||
import seminar.models as m
|
import seminar.models as m
|
||||||
from django.db.models import Q, Sum
|
from django.db.models import Q, Sum
|
||||||
|
@ -22,7 +22,7 @@ def body_resitelu(
|
||||||
do: m.Deadline = None,
|
do: m.Deadline = None,
|
||||||
od: m.Deadline = None,
|
od: m.Deadline = None,
|
||||||
jen_verejne: bool = True,
|
jen_verejne: bool = True,
|
||||||
resitele=None,
|
resitele: Iterable[m.Resitel] = None,
|
||||||
null=0 # Výchozí hodnota, pokud pro daného řešitele nejsou body
|
null=0 # Výchozí hodnota, pokud pro daného řešitele nejsou body
|
||||||
) -> dict[int, int]:
|
) -> dict[int, int]:
|
||||||
filtr = Q()
|
filtr = Q()
|
||||||
|
|
Loading…
Reference in a new issue