Create a doc that represents attribute access on self. Parameters ---------- name : str The attribute name to access Returns ------- doc : AttrAccessDoc
(self, name: str)
| 39 | """Base class of all expression Docs""" |
| 40 | |
| 41 | def attr(self, name: str) -> "AttrAccessDoc": |
| 42 | """ |
| 43 | Create a doc that represents attribute access on self. |
| 44 | |
| 45 | Parameters |
| 46 | ---------- |
| 47 | name : str |
| 48 | The attribute name to access |
| 49 | |
| 50 | Returns |
| 51 | ------- |
| 52 | doc : AttrAccessDoc |
| 53 | """ |
| 54 | return _ffi_api.ExprDocAttr(self, name) # type: ignore # pylint: disable=no-member |
| 55 | |
| 56 | def call(self, *args: tuple["ExprDoc"], **kwargs: dict[str, "ExprDoc"]) -> "CallDoc": |
| 57 | """ |
no outgoing calls