mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-12 23:16:31 +08:00
Updating deconstructible (#1116)
* Updating deconstructible * Black * Update deconstruct.pyi Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
from typing import Any, Optional
|
from typing import Any, Callable, Optional, TypeVar, overload
|
||||||
|
|
||||||
def deconstructible(*args: Any, path: Optional[Any] = ...) -> Any: ...
|
_T = TypeVar("_T")
|
||||||
|
_TCallable = TypeVar("_TCallable", bound=Callable[..., Any])
|
||||||
|
|
||||||
|
@overload
|
||||||
|
def deconstructible(_type: type[_T]) -> type[_T]: ...
|
||||||
|
@overload
|
||||||
|
def deconstructible(*, path: Optional[str] = ...) -> Callable[[_TCallable], _TCallable]: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user