Commit f9060028 authored by BO ZHANG's avatar BO ZHANG :basketball:
Browse files

add hints on asserts

parent db6f7700
No related merge requests found
Pipeline #2299 failed with stage
in 0 seconds
Showing with 7 additions and 3 deletions
+7 -3
......@@ -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
......
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