From 3e041caee6548ef8c3b10c2d3a220190dabcf2e6 Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Wed, 15 Nov 2023 10:57:45 +0000 Subject: [PATCH] Fixed other URL typing error --- src/data_common/helpers/url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())