提交 0ddf72cb authored 作者: Virgile Andreani's avatar Virgile Andreani 提交者: Ricardo Vieira

Fix RUF013

上级 c8839c8b
...@@ -46,7 +46,9 @@ def force_unlock(lock_dir: os.PathLike): ...@@ -46,7 +46,9 @@ def force_unlock(lock_dir: os.PathLike):
@contextmanager @contextmanager
def lock_ctx( def lock_ctx(
lock_dir: Union[str, os.PathLike] = None, *, timeout: Optional[float] = None lock_dir: Optional[Union[str, os.PathLike]] = None,
*,
timeout: Optional[float] = None,
): ):
"""Context manager that wraps around FileLock and SoftFileLock from filelock package. """Context manager that wraps around FileLock and SoftFileLock from filelock package.
......
pytensor/compile/builders.py pytensor/compile/builders.py
pytensor/compile/compilelock.py
pytensor/compile/debugmode.py pytensor/compile/debugmode.py
pytensor/compile/function/pfunc.py pytensor/compile/function/pfunc.py
pytensor/compile/function/types.py pytensor/compile/function/types.py
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论