Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
satella
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
satella
Commits
d94128aa
Commit
d94128aa
authored
4 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
simplified from_dict
parent
554248f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
satella/__init__.py
+1
-1
1 addition, 1 deletion
satella/__init__.py
satella/configuration/sources/from_dict.py
+0
-4
0 additions, 4 deletions
satella/configuration/sources/from_dict.py
with
1 addition
and
5 deletions
satella/__init__.py
+
1
−
1
View file @
d94128aa
__version__
=
'
2.16.2a
5
'
__version__
=
'
2.16.2a
6
'
This diff is collapsed.
Click to expand it.
satella/configuration/sources/from_dict.py
+
0
−
4
View file @
d94128aa
...
@@ -52,10 +52,6 @@ def load_source_from_dict(dct: dict) -> BaseSource:
...
@@ -52,10 +52,6 @@ def load_source_from_dict(dct: dict) -> BaseSource:
def
to_arg
(
arg
):
def
to_arg
(
arg
):
if
isinstance
(
arg
,
dict
)
and
'
type
'
in
arg
:
if
isinstance
(
arg
,
dict
)
and
'
type
'
in
arg
:
a_type
=
arg
[
'
type
'
]
a_type
=
arg
[
'
type
'
]
if
a_type
==
'
BuildObjectFrom
'
:
key_name
=
arg
[
'
key
'
]
child
=
load_source_from_dict
(
arg
[
'
child
'
])
return
BuildObjectFrom
(
key_name
,
child
)
if
a_type
in
EXTRA_TYPES
:
if
a_type
in
EXTRA_TYPES
:
return
EXTRA_TYPES
[
a_type
](
arg
)
return
EXTRA_TYPES
[
a_type
](
arg
)
elif
a_type
in
sources
.
__dict__
:
elif
a_type
in
sources
.
__dict__
:
...
...
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