diff --git a/src/data_common/helpers/url.py b/src/data_common/helpers/url.py index e12382e..0a41ac8 100644 --- a/src/data_common/helpers/url.py +++ b/src/data_common/helpers/url.py @@ -166,7 +166,7 @@ def port(self, value: str | int): self._netloc = self._netloc._replace(port=value) self._urlparse = self._urlparse._replace(netloc=self._netloc.construct_netloc()) - def __truediv__(self, other: str) -> Self: + def __truediv__(self: T, other: str) -> T: new_url = self._urlparse._replace(path=self._urlparse.path + "/" + other) return self.__class__(new_url.geturl())