From b2f5f81ca8615781d79d807fe92f7824653cea22 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Wed, 6 Nov 2024 03:56:28 +0900 Subject: [PATCH] =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E7=BE=A9=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/eloquent.pyi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db/eloquent.pyi b/db/eloquent.pyi index 0ab7167..206b7cb 100644 --- a/db/eloquent.pyi +++ b/db/eloquent.pyi @@ -115,6 +115,9 @@ class Model: @classmethod def where_not_null (cls, field: str) -> QueryBuilder[Self]: ... + @classmethod + def max (cls, column: str) -> Any: ... + @classmethod def set_connection_resolver (cls, resolver: DatabaseManager) -> None: ... @@ -137,4 +140,6 @@ class QueryBuilder (Generic[_ModelT]): def where_null (self, field: str) -> QueryBuilder[_ModelT]: ... + def max (self, column: str) -> Any: ... + def _load_relation (self, relation_name: str) -> QueryBuilder[_ModelT]: ...