Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
setters.pyi21 linesDownload Raw Back to attr
1from typing import Any, NewType, NoReturn, TypeVar2 3from . import Attribute4from attrs import _OnSetAttrType5 6_T = TypeVar("_T")7 8def frozen(9    instance: Any, attribute: Attribute[Any], new_value: Any10) -> NoReturn: ...11def pipe(*setters: _OnSetAttrType) -> _OnSetAttrType: ...12def validate(instance: Any, attribute: Attribute[_T], new_value: _T) -> _T: ...13 14# convert is allowed to return Any, because they can be chained using pipe.15def convert(16    instance: Any, attribute: Attribute[Any], new_value: Any17) -> Any: ...18 19_NoOpType = NewType("_NoOpType", object)20NO_OP: _NoOpType21 
codekingpro/portable-devtools · Team Ai