Skip to content

Commit

Permalink
typehinting
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Dec 4, 2023
1 parent 3fc3d80 commit a6f64fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

import random
import secrets
from typing import List

from django.contrib.auth.models import AbstractUser
from django.core.exceptions import ValidationError
from django.db import models
from django.db.models import QuerySet
from django.db.models.signals import pre_save
from django.dispatch import receiver
from django.utils import timezone
Expand Down Expand Up @@ -75,7 +77,7 @@ def __str__(self):
return f"{self.id} {self.short or self.location}"

@classmethod
def codes(cls, team: "Team"):
def codes(cls, team: "Team") -> List[QrCode]:
pks = QrCode.code_pks(team)
return [QrCode.objects.get(id=a) for a in pks]

Expand Down

0 comments on commit a6f64fc

Please sign in to comment.