Skip to content
Snippets Groups Projects
Commit 419067e7 authored by Mateusz Żebrak's avatar Mateusz Żebrak
Browse files

Add dunder str for Url

parent c3b6be52
Branches 7-add-token-to-beekeeper-api-calls
No related tags found
1 merge request!20Add dunder str for Url
Pipeline #86230 failed
......@@ -31,6 +31,9 @@ class Url(Generic[ProtocolT]):
else:
raise TypeError("Unknown type, cannot convert to Url")
def __str__(self) -> str:
return self.as_string()
@property
def protocol(self) -> ProtocolT:
"""Return protocol of url, e.x: http, https."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment