mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +08:00
initial commit
This commit is contained in:
32
django/db/models/signals.pyi
Normal file
32
django/db/models/signals.pyi
Normal file
@@ -0,0 +1,32 @@
|
||||
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: ...
|
||||
Reference in New Issue
Block a user