From d96381fd4e40df28f220116f73c34f28527c0816 Mon Sep 17 00:00:00 2001 From: XingQue Date: Thu, 18 Jun 2026 09:37:55 +0800 Subject: [PATCH] =?UTF-8?q?GVSDSDK=20=E7=9A=84=20model=5Fbase.py=20?= =?UTF-8?q?=E5=9C=A8=20Python=203.10=20=E4=B8=8B=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E4=BB=8E=20typing=20=E5=AF=BC=E5=85=A5=20Self=EF=BC=8C?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=E5=85=BC=E5=AE=B9=EF=BC=9A3.11=20=E7=94=A8?= =?UTF-8?q?=E6=A0=87=E5=87=86=E5=BA=93=EF=BC=8C3.10=20=E7=94=A8=20typing?= =?UTF-8?q?=5Fextensions.Self=E3=80=82=E5=8F=AA=E5=8A=A8=E8=BF=99=E4=B8=80?= =?UTF-8?q?=E5=A4=84=EF=BC=8C=E4=B8=9A=E5=8A=A1=E9=80=BB=E8=BE=91=E4=B8=8D?= =?UTF-8?q?=E5=8F=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gvsdsdk/model_base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gvsdsdk/model_base.py b/gvsdsdk/model_base.py index 49f567e..360cf16 100644 --- a/gvsdsdk/model_base.py +++ b/gvsdsdk/model_base.py @@ -24,7 +24,12 @@ from __future__ import annotations import re -from typing import Any, Callable, Dict, Generic, Optional, Self, Tuple, Type, TypeVar, Union +from typing import Any, Callable, Dict, Generic, Optional, Tuple, Type, TypeVar, Union + +try: + from typing import Self +except ImportError: + from typing_extensions import Self from django.db import models from django.db.models import Q