Custom url -> str transformer that removes trailing slash.
(url: AnyUrl)
| 1117 | |
| 1118 | def test_after_validator() -> None: |
| 1119 | def remove_trailing_slash(url: AnyUrl) -> str: |
| 1120 | """Custom url -> str transformer that removes trailing slash.""" |
| 1121 | return str(url._url).rstrip('/') |
| 1122 | |
| 1123 | HttpUrl = Annotated[ |
| 1124 | AnyUrl, |
no outgoing calls
no test coverage detected