diff --git a/src/rapid_router/models/user.py b/src/rapid_router/models/user.py index c945ec16..e3663ee9 100644 --- a/src/rapid_router/models/user.py +++ b/src/rapid_router/models/user.py @@ -11,10 +11,13 @@ from codeforlife.user.models import User as _User from django.db.models.query import QuerySet -from django_stubs_ext.db.models import TypedModelMeta if t.TYPE_CHECKING: + from django_stubs_ext.db.models import TypedModelMeta + from .level import Level +else: + TypedModelMeta = object class User(_User):