Skip to content

Commit

Permalink
Fixed other URL typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Nov 15, 2023
1 parent 2427f53 commit 3e041ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_common/helpers/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 3e041ca

Please sign in to comment.