Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quality-kpi
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rivera Alcalde, Andrés Daniel
quality-kpi
Commits
33f28032
Commit
33f28032
authored
2 years ago
by
Hock, Martin
Browse files
Options
Downloads
Patches
Plain Diff
Fix clone functionality for the dict.update method
parent
a513e099
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
functions/classes.py
+2
-1
2 additions, 1 deletion
functions/classes.py
with
2 additions
and
1 deletion
functions/classes.py
+
2
−
1
View file @
33f28032
...
@@ -53,7 +53,8 @@ class LegoComponent:
...
@@ -53,7 +53,8 @@ class LegoComponent:
def
clone
(
self
,
new_label
:
str
=
None
)
->
LegoComponent
:
def
clone
(
self
,
new_label
:
str
=
None
)
->
LegoComponent
:
if
new_label
is
None
:
if
new_label
is
None
:
new_label
=
self
.
properties
.
label
new_label
=
self
.
properties
.
label
clone
=
LegoComponent
(
None
,
self
.
properties
,
label
=
new_label
)
clone
=
LegoComponent
(
None
,
None
,
self
.
properties
)
clone
.
properties
[
'
label
'
]
=
new_label
return
clone
return
clone
def
get_root_assembly
(
self
):
def
get_root_assembly
(
self
):
...
...
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