Helper function to remove redundant `re.compile` calls when printing regex
(match: Pattern[str])
| 293 | |
| 294 | |
| 295 | def _match_pattern(match: Pattern[str]) -> str | Pattern[str]: |
| 296 | """Helper function to remove redundant `re.compile` calls when printing regex""" |
| 297 | return match.pattern if match.flags == _REGEX_NO_FLAGS else match |
| 298 | |
| 299 | |
| 300 | def repr_callable(fun: Callable[[BaseExcT_1], bool]) -> str: |
no outgoing calls
no test coverage detected