mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 05:24:53 +08:00
16 lines
486 B
Python
16 lines
486 B
Python
from typing import Any, Callable
|
|
|
|
from django.db import IntegrityError
|
|
|
|
def CASCADE(collector, field, sub_objs, using): ...
|
|
def SET_NULL(collector, field, sub_objs, using): ...
|
|
def SET_DEFAULT(collector, field, sub_objs, using): ...
|
|
def DO_NOTHING(collector, field, sub_objs, using): ...
|
|
def PROTECT(collector, field, sub_objs, using): ...
|
|
def SET(value: Any) -> Callable: ...
|
|
|
|
class ProtectedError(IntegrityError): ...
|
|
|
|
class Collector:
|
|
def __init__(self, using: str) -> None: ...
|