Skip to content

Commit

Permalink
WIP: Annotate remainder of test_inheritance_manager module
Browse files Browse the repository at this point in the history
  • Loading branch information
mthuurne committed Apr 10, 2024
1 parent e52f22a commit d88b22f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_managers/test_inheritance_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from django.db import models
from django.test import TestCase

from model_utils.managers import InheritanceManager
from tests.models import (
InheritanceManagerTestChild1,
InheritanceManagerTestChild2,
Expand All @@ -25,7 +26,7 @@ def setUp(self) -> None:
self.grandchild1_2 = \
InheritanceManagerTestGrandChild1_2.objects.create()

def get_manager(self):
def get_manager(self) -> InheritanceManager[InheritanceManagerTestParent]:
return InheritanceManagerTestParent.objects

def test_normal(self) -> None:
Expand Down Expand Up @@ -495,7 +496,7 @@ def setUp(self) -> None:
self.grandchild1 = InheritanceManagerTestGrandChild1.objects.create(related=self.related)
self.grandchild1_2 = InheritanceManagerTestGrandChild1_2.objects.create(related=self.related)

def get_manager(self):
def get_manager(self) -> models.Manager:
return self.related.imtests

def test_get_method_with_select_subclasses(self) -> None:
Expand Down

0 comments on commit d88b22f

Please sign in to comment.