Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/attr/setters.pyi @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
| author | shellac |
|---|---|
| date | Mon, 22 Mar 2021 18:12:50 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:4f3585e2f14b |
|---|---|
| 1 from . import _OnSetAttrType, Attribute | |
| 2 from typing import TypeVar, Any, NewType, NoReturn, cast | |
| 3 | |
| 4 _T = TypeVar("_T") | |
| 5 | |
| 6 def frozen( | |
| 7 instance: Any, attribute: Attribute, new_value: Any | |
| 8 ) -> NoReturn: ... | |
| 9 def pipe(*setters: _OnSetAttrType) -> _OnSetAttrType: ... | |
| 10 def validate(instance: Any, attribute: Attribute[_T], new_value: _T) -> _T: ... | |
| 11 | |
| 12 # convert is allowed to return Any, because they can be chained using pipe. | |
| 13 def convert( | |
| 14 instance: Any, attribute: Attribute[Any], new_value: Any | |
| 15 ) -> Any: ... | |
| 16 | |
| 17 _NoOpType = NewType("_NoOpType", object) | |
| 18 NO_OP: _NoOpType |
