Skip to content
GitLab
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
Dec 13, 2023
by
BO ZHANG
🏀
Browse files
add hints on asserts
parent
db6f7700
Pipeline
#2299
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_common/status.py
View file @
f9060028
...
@@ -49,10 +49,14 @@ class CsstResult:
...
@@ -49,10 +49,14 @@ class CsstResult:
):
):
if
files
is
None
:
if
files
is
None
:
files
=
[]
files
=
[]
assert
isinstance
(
status
,
CsstStatus
)
assert
isinstance
(
assert
isinstance
(
files
,
list
)
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
:
for
_
in
files
:
assert
isinstance
(
_
,
str
)
assert
isinstance
(
_
,
str
)
,
"`files` should be a list of `str` type objects."
self
.
status
:
CsstStatus
=
status
self
.
status
:
CsstStatus
=
status
self
.
files
:
Optional
[
list
]
=
files
self
.
files
:
Optional
[
list
]
=
files
self
.
output
:
dict
=
output
self
.
output
:
dict
=
output
...
...
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