Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
0ada9fa3
Unverified
Commit
0ada9fa3
authored
Jul 26, 2022
by
Nicolas Hug
Committed by
GitHub
Jul 26, 2022
Browse files
Indicate strings can be used to specify `weights` parameter (#6314)
* Indicate strings can be used to specify * quotes
parent
96f5467b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
docs/source/conf.py
docs/source/conf.py
+2
-1
No files found.
docs/source/conf.py
View file @
0ada9fa3
...
@@ -326,7 +326,8 @@ def inject_weight_metadata(app, what, name, obj, options, lines):
...
@@ -326,7 +326,8 @@ def inject_weight_metadata(app, what, name, obj, options, lines):
lines
[:]
=
[
lines
[:]
=
[
"The model builder above accepts the following values as the ``weights`` parameter."
,
"The model builder above accepts the following values as the ``weights`` parameter."
,
f
"``
{
obj
.
__name__
}
.DEFAULT`` is equivalent to ``
{
obj
.
DEFAULT
}
``."
,
f
"``
{
obj
.
__name__
}
.DEFAULT`` is equivalent to ``
{
obj
.
DEFAULT
}
``. You can also use strings, e.g. "
f
"``weights='DEFAULT'`` or ``weights='
{
str
(
list
(
obj
)[
0
]).
split
(
'.'
)[
1
]
}
'``."
,
]
]
if
obj
.
__doc__
!=
"An enumeration."
:
if
obj
.
__doc__
!=
"An enumeration."
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment