mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-05-24 09:18:41 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
from typing import Any, Callable, Optional, Type, Union
|
||||
|
||||
from django.apps.registry import Apps
|
||||
from django.db.models.base import Model
|
||||
from django.dispatch import Signal
|
||||
|
||||
class_prepared: Any
|
||||
|
||||
class ModelSignal(Signal):
|
||||
def connect(
|
||||
self,
|
||||
receiver: Callable,
|
||||
sender: Optional[Union[Type[Model], str]] = ...,
|
||||
weak: bool = ...,
|
||||
dispatch_uid: None = ...,
|
||||
apps: Optional[Apps] = ...,
|
||||
) -> None: ...
|
||||
def disconnect(
|
||||
self,
|
||||
receiver: Callable = ...,
|
||||
sender: Optional[Union[Type[Model], str]] = ...,
|
||||
dispatch_uid: None = ...,
|
||||
apps: Optional[Apps] = ...,
|
||||
) -> Optional[bool]: ...
|
||||
|
||||
pre_init: Any
|
||||
post_init: Any
|
||||
pre_save: Any
|
||||
post_save: Any
|
||||
pre_delete: Any
|
||||
post_delete: Any
|
||||
m2m_changed: Any
|
||||
pre_migrate: Any
|
||||
post_migrate: Any
|
||||
Reference in New Issue
Block a user