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

tweak CsstResult

parent a85e953d
......@@ -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}>
......
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