Get (key, value) list of attrs.
(self)
| 87 | return list(self.attrs.keys()).index(name) |
| 88 | |
| 89 | def attrItems(self) -> list[tuple[str, str | int | float]]: |
| 90 | """Get (key, value) list of attrs.""" |
| 91 | return list(self.attrs.items()) |
| 92 | |
| 93 | def attrPush(self, attrData: tuple[str, str | int | float]) -> None: |
| 94 | """Add `[ name, value ]` attribute to list. Init attrs if necessary.""" |