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])
| 245 | return self.compiled_re |
| 246 | |
| 247 | def handleMatch(self, m: re.Match[str]) -> etree.Element | str: |
| 248 | """Return a ElementTree element from the given match. |
| 249 | |
| 250 | Subclasses should override this method. |
| 251 | |
| 252 | Arguments: |
| 253 | m: A match object containing a match of the pattern. |
| 254 | |
| 255 | Returns: An ElementTree Element object. |
| 256 | |
| 257 | """ |
| 258 | pass # pragma: no cover |
| 259 | |
| 260 | def type(self) -> str: |
| 261 | """ Return class name, to define pattern type """ |