Commit 40fab6cc authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add decorator to __all__

parent 6b8d9e80
Pipeline #2429 running with stage
......@@ -17,4 +17,9 @@ from .status import CsstResult, CsstStatus
__version__ = "0.0.2"
__all__ = ["Pipeline", "File", "CsstResult"]
__all__ = [
"Pipeline",
"File",
"CsstResult",
"parameterized_module_decorator",
]
......@@ -32,6 +32,22 @@ class ModuleResult(NamedTuple):
def parameterized_module_decorator(
logger: Optional[logging.Logger] = None,
) -> Callable:
"""
Parameterized module decorator.
This is designed for wrapping modules.
Parameters
----------
logger : Optional[logging.Logger]
The logger.
Returns
-------
Callable
A wrapped module.
"""
# use default logger
if logger is None:
logger = get_logger()
......
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