Method
_construct
(
cls,
selectable: Any,
*,
name: Optional[str] = None,
**kw: Any,
)
Source from the content-addressed store, hash-verified
| 1758 | |
| 1759 | @classmethod |
| 1760 | def _construct( |
| 1761 | cls, |
| 1762 | selectable: Any, |
| 1763 | *, |
| 1764 | name: Optional[str] = None, |
| 1765 | **kw: Any, |
| 1766 | ) -> Self: |
| 1767 | obj = cls.__new__(cls) |
| 1768 | obj._init(selectable, name=name, **kw) |
| 1769 | return obj |
| 1770 | |
| 1771 | def _init(self, selectable: Any, *, name: Optional[str] = None) -> None: |
| 1772 | self.element = coercions.expect( |
Tested by
no test coverage detected