Skip to content

Commit 5ac601a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f7d65cd commit 5ac601a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jupyter_server/prometheus/metrics.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
from prometheus_client import Gauge, Histogram, Info
9+
910
from jupyter_server._version import version_info as server_version_info
1011

1112
try:
@@ -14,7 +15,11 @@
1415
notebook_version_info = None
1516

1617

17-
if notebook_version_info is not None and notebook_version_info < (7,) and notebook_version_info != server_version_info:
18+
if (
19+
notebook_version_info is not None
20+
and notebook_version_info < (7,)
21+
and notebook_version_info != server_version_info
22+
):
1823
print("yes, we think we have an unshimmed notebook package")
1924
print(notebook_version_info)
2025
# Jupyter Notebook v6 also defined these metrics. Re-defining them results in a ValueError,

0 commit comments

Comments
 (0)