Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
f9060028
Commit
f9060028
authored
1 year ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
add hints on asserts
parent
db6f7700
dev
main
No related merge requests found
Pipeline
#2299
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_common/status.py
+7
-3
csst_common/status.py
with
7 additions
and
3 deletions
+7
-3
csst_common/status.py
+
7
-
3
View file @
f9060028
...
...
@@ -49,10 +49,14 @@ class CsstResult:
):
if
files
is
None
:
files
=
[]
assert
isinstance
(
status
,
CsstStatus
)
assert
isinstance
(
files
,
list
)
assert
isinstance
(
status
,
CsstStatus
),
"`status` should be a `csst_common.CsstStatus` type objects."
assert
isinstance
(
files
,
list
),
"`files` should be a list of `str` type objects."
for
_
in
files
:
assert
isinstance
(
_
,
str
)
assert
isinstance
(
_
,
str
)
,
"`files` should be a list of `str` type objects."
self
.
status
:
CsstStatus
=
status
self
.
files
:
Optional
[
list
]
=
files
self
.
output
:
dict
=
output
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets