Files
django-stubs/django/db/models/signals.pyi
Maxim Kurnikov a9f215bf64 initial commit
2018-07-29 18:12:23 +03:00

32 lines
668 B
Python

from django.apps.registry import Apps
from typing import (
Any,
Callable,
Optional,
)
class ModelSignal:
def _lazy_method(
self,
method: Callable,
apps: Optional[Apps],
receiver: Callable,
sender: Any,
**kwargs
) -> Optional[bool]: ...
def connect(
self,
receiver: Callable,
sender: Any = ...,
weak: bool = ...,
dispatch_uid: None = ...,
apps: None = ...
) -> None: ...
def disconnect(
self,
receiver: Callable = ...,
sender: Any = ...,
dispatch_uid: None = ...,
apps: None = ...
) -> bool: ...