Skip to content

Commit 8a24e9a

Browse files
committed
precommit fixes
1 parent 2df2cdb commit 8a24e9a

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

gufe/protocols/protocolunit.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import uuid
1616
from copy import copy
1717
from pathlib import Path
18-
from typing import Any, Optional
18+
from typing import Any
1919

2020
from gufe.storage.externalresource.base import ExternalStorage
2121

@@ -69,8 +69,13 @@ class Context:
6969
7070
Examples
7171
--------
72-
>>> with Context(dag_label="my_dag", unit_label="unit1", scratch="/tmp/scratch",
73-
... shared_storage=shared_store, permanent_storage=perm_store) as ctx:
72+
>>> with Context(
73+
... dag_label="my_dag",
74+
... unit_label="unit1",
75+
... scratch="/tmp/scratch",
76+
... shared_storage=shared_store,
77+
... permanent_storage=perm_store,
78+
... ) as ctx:
7479
... # use ctx within the ProtocolUnit._execute method
7580
... pass
7681
"""
@@ -82,8 +87,8 @@ def __init__(
8287
scratch: Path,
8388
shared_storage: ExternalStorage,
8489
permanent_storage: ExternalStorage,
85-
stderr: Optional[Path] = None,
86-
stdout: Optional[Path] = None,
90+
stderr: Path | None = None,
91+
stdout: Path | None = None,
8792
):
8893
self.scratch = scratch
8994
self.shared = StorageManager(

0 commit comments

Comments
 (0)