Return a ElementTree element from the given match. Subclasses should override this method. Arguments: m: A match object containing a match of the pattern. Returns: An ElementTree Element object.
(self, m: re.Match[str])
| 216 | return self.compiled_re |
| 217 | |
| 218 | def handleMatch(self, m: re.Match[str]) -> etree.Element | str: |
| 219 | """Return a ElementTree element from the given match. |
| 220 | |
| 221 | Subclasses should override this method. |
| 222 | |
| 223 | Arguments: |
| 224 | m: A match object containing a match of the pattern. |
| 225 | |
| 226 | Returns: An ElementTree Element object. |
| 227 | |
| 228 | """ |
| 229 | pass # pragma: no cover |
| 230 | |
| 231 | def type(self) -> str: |
| 232 | """ Return class name, to define pattern type """ |