From 917f45cdb1900d7229d874bbb319918b0a8dae1f Mon Sep 17 00:00:00 2001 From: SKairinos Date: Fri, 7 Jun 2024 13:24:48 +0000 Subject: [PATCH] fix: typed model meta import --- src/rapid_router/models/user.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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):