Commit f9060028 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add hints on asserts

parent db6f7700
Pipeline #2299 failed with stage
in 0 seconds
...@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment