Skip to content

Commit

Permalink
Update typing to ContextManager
Browse files Browse the repository at this point in the history
  • Loading branch information
devinrsmith committed Dec 11, 2023
1 parent 59219ab commit 329d602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deephaven/plugin/js.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class JsPlugin(Plugin):
"""

@abc.abstractmethod
def root(self) -> typing.Generator[pathlib.Path, None, None]:
def root(self) -> typing.ContextManager[pathlib.Path]:
"""
The root directory of the resources to serve. The root must exist.
The root directory of the resources to serve in a context manager. The root must exist.
"""
pass

Expand Down

0 comments on commit 329d602

Please sign in to comment.