提交 e77d7718 编写于 作者: HansBug's avatar HansBug 😆

doc(hansbug): add doc framework for treetensor.utils

上级 84984ec1
Class Decorators
============================
.. py:currentmodule:: treetensor.utils
.. automodule:: treetensor.utils.clazz
tag_names
--------------------
.. autofunction:: tag_names
inherit_names
--------------------
.. autofunction:: inherit_names
current_names
--------------------
.. autofunction:: current_names
treetensor.utils.clazz
\ No newline at end of file
Function Decorators
===========================
.. py:currentmodule:: treetensor.utils
.. automodule:: treetensor.utils.func
replaceable_partial
--------------------------
.. autofunction:: replaceable_partial
args_mapping
--------------------------
.. autofunction:: args_mapping
treetensor.utils.func
\ No newline at end of file
......@@ -4,5 +4,6 @@ treetensor.utils
.. toctree::
:maxdepth: 3
clazz.auto
func.auto
clazz
doc
func
"""
Class decorators.
Mainly used for tagging the members of a class, will be used when auto generating the documentation.
"""
import types
from functools import reduce
from operator import __or__
......
"""
Documentation Decorators.
"""
__all__ = [
'doc_from',
]
......
"""
Functional Decorators.
"""
from functools import wraps
from typing import Callable, Union, Any
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册