Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 31, 2022
1 parent 95b26f0 commit f3dd8ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nbclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ class NotebookClient(LoggingConfigurable):
""",
).tag(config=True)

kernel_manager_class = Type(config=True, klass=KernelManager, help='The kernel manager class to use.')
kernel_manager_class = Type(
config=True, klass=KernelManager, help='The kernel manager class to use.'
)

on_notebook_start: t.Optional[t.Callable] = Callable(
default_value=None,
Expand Down
2 changes: 2 additions & 0 deletions nbclient/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ def test_mock_wrapper(self):
cell_mock = NotebookNode(
source='"foo" = "bar"', metadata={}, cell_type='code', outputs=[]
)

class NotebookClientWithParentID(NotebookClient):
parent_id: str

executor = NotebookClientWithParentID({}) # type:ignore
executor.nb = {'cells': [cell_mock]} # type:ignore

Expand Down

0 comments on commit f3dd8ff

Please sign in to comment.