Skip to content

Commit 2e0efc1

Browse files
committed
Add type-hints to adaptive/notebook_integration.py
1 parent 7fd0588 commit 2e0efc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adaptive/notebook_integration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import asyncio
24
import datetime
35
import importlib
@@ -76,7 +78,7 @@ def ensure_plotly():
7678
raise RuntimeError("plotly is not installed; plotting is disabled.")
7779

7880

79-
def in_ipynb():
81+
def in_ipynb() -> bool:
8082
try:
8183
# If we are running in IPython, then `get_ipython()` is always a global
8284
return get_ipython().__class__.__name__ == "ZMQInteractiveShell"

0 commit comments

Comments
 (0)