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
db6f7700
Commit
db6f7700
authored
Dec 13, 2023
by
BO ZHANG
🏀
Browse files
assert files are str
parent
86d62717
Pipeline
#2298
failed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_common/status.py
View file @
db6f7700
...
...
@@ -44,13 +44,15 @@ class CsstResult:
def
__init__
(
self
,
status
:
CsstStatus
=
CsstStatus
.
ERROR
,
files
:
Optional
[
list
]
=
None
,
files
:
Optional
[
list
[
str
]
]
=
None
,
**
output
:
Any
,
):
if
files
is
None
:
files
=
[]
assert
isinstance
(
status
,
CsstStatus
)
assert
type
(
files
)
is
list
assert
isinstance
(
files
,
list
)
for
_
in
files
:
assert
isinstance
(
_
,
str
)
self
.
status
:
CsstStatus
=
status
self
.
files
:
Optional
[
list
]
=
files
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