mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 05:51:53 +08:00
32 lines
668 B
Python
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: ... |