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