mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 13:35:01 +08:00
initial commit
This commit is contained in:
35
django/dispatch/dispatcher.pyi
Normal file
35
django/dispatch/dispatcher.pyi
Normal file
@@ -0,0 +1,35 @@
|
||||
from dispatch.tests import Callable
|
||||
from functools import partial
|
||||
from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
List,
|
||||
Optional,
|
||||
Tuple,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
class Signal:
|
||||
def __init__(self, providing_args: List[str] = ..., use_caching: bool = ...) -> None: ...
|
||||
def _clear_dead_receivers(self) -> None: ...
|
||||
def _live_receivers(
|
||||
self,
|
||||
sender: object
|
||||
) -> Union[List[Callable], List[object], List[Callable], List[partial]]: ...
|
||||
def _remove_receiver(self, receiver: None = ...) -> None: ...
|
||||
def connect(
|
||||
self,
|
||||
receiver: Callable,
|
||||
sender: Any = ...,
|
||||
weak: bool = ...,
|
||||
dispatch_uid: Optional[str] = ...
|
||||
) -> None: ...
|
||||
def disconnect(
|
||||
self,
|
||||
receiver: Optional[Callable] = ...,
|
||||
sender: Any = ...,
|
||||
dispatch_uid: Optional[str] = ...
|
||||
) -> bool: ...
|
||||
def has_listeners(self, sender: object = ...) -> bool: ...
|
||||
def send(self, sender: Any, **named) -> Union[List[Tuple[Callable, None]], List[Tuple[object, None]]]: ...
|
||||
Reference in New Issue
Block a user