def METHOD_NAME(self, url: str):
    if isinstance(url, str):
        self._url = url
    else:
        raise TypeError(
            f"{type(self).__name__} url must be str, " f"got {type(url).__name__}"
        )