(param: Union[URLMatchRequest, URLMatchResponse])
| 1616 | |
| 1617 | |
| 1618 | def trim_url(param: Union[URLMatchRequest, URLMatchResponse]) -> Optional[str]: |
| 1619 | if isinstance(param, re.Pattern): |
| 1620 | return trim_end(param.pattern) |
| 1621 | if isinstance(param, str): |
| 1622 | return trim_end(param) |
| 1623 | return None |
| 1624 | |
| 1625 | |
| 1626 | def trim_end(s: str) -> str: |
no test coverage detected