示例#1
0
文件: nox.py 项目: zeroday0619/hikari
    def decorator(func: typing.Callable[[Session], None]):
        func.__name__ = func.__name__.replace("_", "-")

        return _session(reuse_venv=reuse_venv, **kwargs)(func) if only_if() else func
示例#2
0
文件: nox.py 项目: Forbidden-A/hikari
    def decorator(
            func: _NoxCallbackSig) -> typing.Union[_NoxCallbackSig, Session]:
        func.__name__ = func.__name__.replace("_", "-")

        return _session(reuse_venv=reuse_venv, **
                        kwargs)(func) if only_if() else func