Skip to content

Commit add205d

Browse files
committed
fix: correct type hint for base.py
1 parent edbc6cd commit add205d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/polymorphic/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ManagerInheritanceWarning(RuntimeWarning):
3737
# reverse relations to polymorphic models also use polymorphic
3838
# querysets by default.
3939
# https://github.com/jazzband/django-polymorphic/pull/858
40-
dj_base_manager = Options.base_manager.func
40+
dj_base_manager = Options.base_manager.func # type: ignore[attr-defined]
4141

4242

4343
def polymorphic_base_manager(self):
@@ -60,7 +60,7 @@ def polymorphic_base_manager(self):
6060
return mgr
6161

6262

63-
Options.base_manager.func = polymorphic_base_manager
63+
Options.base_manager.func = polymorphic_base_manager # type: ignore[attr-defined]
6464

6565

6666
class PolymorphicModelBase(ModelBase):

0 commit comments

Comments
 (0)