mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-09-08 15:53:23 +08:00
initial commit
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
from datetime import (
|
||||
date,
|
||||
datetime,
|
||||
)
|
||||
from decimal import Decimal
|
||||
from django.db.backends.sqlite3.base import DatabaseWrapper
|
||||
from django.db.models.fields import Field
|
||||
from django.db.models.sql.compiler import SQLCompiler
|
||||
from typing import (
|
||||
Any,
|
||||
List,
|
||||
Tuple,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
class Cast:
|
||||
def __init__(
|
||||
self,
|
||||
expression: Union[str, date, Decimal],
|
||||
output_field: Field
|
||||
) -> None: ...
|
||||
def as_sql(
|
||||
self,
|
||||
compiler: SQLCompiler,
|
||||
connection: DatabaseWrapper,
|
||||
**extra_context
|
||||
) -> Union[Tuple[str, List[datetime]], Tuple[str, List[Any]]]: ...
|
||||
|
||||
|
||||
class Coalesce:
|
||||
def __init__(self, *expressions, **extra) -> None: ...
|
||||
|
||||
|
||||
class Greatest:
|
||||
def __init__(self, *expressions, **extra) -> None: ...
|
||||
def as_sqlite(
|
||||
self,
|
||||
compiler: SQLCompiler,
|
||||
connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[Any]]: ...
|
||||
|
||||
|
||||
class Least:
|
||||
def __init__(self, *expressions, **extra) -> None: ...
|
||||
def as_sqlite(
|
||||
self,
|
||||
compiler: SQLCompiler,
|
||||
connection: DatabaseWrapper
|
||||
) -> Union[Tuple[str, List[datetime]], Tuple[str, List[Any]]]: ...
|
||||
Reference in New Issue
Block a user