Skip to content

Commit 0ddf72c

Browse files
ArmavicaricardoV94
authored andcommitted
Fix RUF013
1 parent c8839c8 commit 0ddf72c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pytensor/compile/compilelock.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ def force_unlock(lock_dir: os.PathLike):
4646

4747
@contextmanager
4848
def lock_ctx(
49-
lock_dir: Union[str, os.PathLike] = None, *, timeout: Optional[float] = None
49+
lock_dir: Optional[Union[str, os.PathLike]] = None,
50+
*,
51+
timeout: Optional[float] = None,
5052
):
5153
"""Context manager that wraps around FileLock and SoftFileLock from filelock package.
5254

scripts/mypy-failing.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
pytensor/compile/builders.py
2-
pytensor/compile/compilelock.py
32
pytensor/compile/debugmode.py
43
pytensor/compile/function/pfunc.py
54
pytensor/compile/function/types.py

0 commit comments

Comments
 (0)