Updating deconstructible (#1116)

* Updating deconstructible

* Black

* Update deconstruct.pyi

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
László Károlyi
2022-08-26 22:43:32 +00:00
committed by GitHub
parent a01ab43cc6
commit 6b39050d52

View File

@@ -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]: ...