Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HELpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
HELpy
Commits
419067e7
Commit
419067e7
authored
1 year ago
by
Mateusz Żebrak
Browse files
Options
Downloads
Patches
Plain Diff
Add dunder str for Url
parent
c3b6be52
Branches
7-add-token-to-beekeeper-api-calls
Branches containing commit
No related tags found
1 merge request
!20
Add dunder str for Url
Pipeline
#86230
failed
1 year ago
Stage: static_code_analysis
Stage: tests
Stage: build
Stage: deploy
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helpy/_interfaces/url.py
+3
-0
3 additions, 0 deletions
helpy/_interfaces/url.py
with
3 additions
and
0 deletions
helpy/_interfaces/url.py
+
3
−
0
View file @
419067e7
...
...
@@ -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.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment