Browse Source

型定義追加

main
みてるぞ 3 weeks ago
parent
commit
b2f5f81ca8
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      db/eloquent.pyi

+ 5
- 0
db/eloquent.pyi View File

@@ -115,6 +115,9 @@ class Model:
@classmethod @classmethod
def where_not_null (cls, field: str) -> QueryBuilder[Self]: ... def where_not_null (cls, field: str) -> QueryBuilder[Self]: ...


@classmethod
def max (cls, column: str) -> Any: ...

@classmethod @classmethod
def set_connection_resolver (cls, resolver: DatabaseManager) -> None: ... 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 where_null (self, field: str) -> QueryBuilder[_ModelT]: ...


def max (self, column: str) -> Any: ...

def _load_relation (self, relation_name: str) -> QueryBuilder[_ModelT]: ... def _load_relation (self, relation_name: str) -> QueryBuilder[_ModelT]: ...

Loading…
Cancel
Save