Skip to content

Commit 93c43f5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6e762a1 commit 93c43f5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-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: Optional[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

pytensor/scan/op.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ def n_outer_outputs(self):
281281
)
282282

283283

284-
TensorConstructorType = Callable[[Iterable[Optional[Union[bool, int]]], Union[str, np.generic]], TensorType]
284+
TensorConstructorType = Callable[
285+
[Iterable[Optional[Union[bool, int]]], Union[str, np.generic]], TensorType
286+
]
285287

286288

287289
class ScanMethodsMixin:

0 commit comments

Comments
 (0)