From da17333a804af56b9af47e4e9eeceb97f1aaaf23 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Wed, 16 Oct 2024 22:16:04 +0900 Subject: [PATCH] =?UTF-8?q?typing.Self=20=E3=81=AF=20Python=203.10=20?= =?UTF-8?q?=E3=81=AB=E3=81=AF=E6=9C=AA=E5=AE=9F=E8=A3=85=E3=81=8B=EF=BC=8C?= =?UTF-8?q?=E3=81=95=E3=81=85=E3=81=8B=EF=BC=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- my_eloquent.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/my_eloquent.py b/my_eloquent.py index 9f53a64..8acc40b 100644 --- a/my_eloquent.py +++ b/my_eloquent.py @@ -1,5 +1,3 @@ -from typing import Self - import eloquent @@ -25,7 +23,7 @@ class Model (eloquent.Model): def with_ ( cls, *relations: str, - ) -> eloquent.QueryBuilder[Self]: + ) -> eloquent.QueryBuilder: q = cls.query () for relation in relations: q = q._load_relation (relation)