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
ab27dee5
Commit
ab27dee5
authored
Dec 10, 2023
by
BO ZHANG
🏀
Browse files
tweak CsstResult
parent
a85e953d
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/status.py
View file @
ab27dee5
...
...
@@ -10,7 +10,7 @@ Modified-History:
2022-10-07, Bo Zhang, added Numpydoc docstring
"""
from
enum
import
IntEnum
from
typing
import
Optional
from
typing
import
Optional
,
Any
class
CsstStatus
(
IntEnum
):
...
...
@@ -44,16 +44,16 @@ class CsstResult:
def
__init__
(
self
,
status
:
CsstStatus
=
CsstStatus
.
ERROR
,
files
:
Optional
=
None
,
**
output
,
files
:
Optional
[
list
]
=
None
,
**
output
:
Any
,
):
if
files
is
None
:
files
=
[]
assert
isinstance
(
status
,
CsstStatus
)
assert
type
(
files
)
is
list
self
.
status
=
status
self
.
files
=
files
self
.
output
=
output
self
.
status
:
CsstStatus
=
status
self
.
files
:
Optional
[
list
]
=
files
self
.
output
:
dict
=
output
def
__repr__
(
self
):
return
f
""" <CsstResult status=
{
self
.
status
}
>
...
...
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