We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f75e2e7 commit e9084b3Copy full SHA for e9084b3
jupyter_server/base/handlers.py
@@ -3,7 +3,6 @@
3
# Distributed under the terms of the Modified BSD License.
4
from __future__ import annotations
5
6
-import contextvars
7
import functools
8
import inspect
9
import ipaddress
@@ -14,6 +13,7 @@
14
13
import traceback
15
import types
16
import warnings
+from contextvars import ContextVar
17
from http.client import responses
18
from typing import TYPE_CHECKING, Awaitable
19
from urllib.parse import urlparse
@@ -67,7 +67,7 @@ def log():
67
return app_log
68
69
70
-CURRENT_JUPYTER_HANDLER = contextvars.ContextVar("CURRENT_JUPYTER_HANDLER")
+CURRENT_JUPYTER_HANDLER: ContextVar[JupyterHandler] = ContextVar("CURRENT_JUPYTER_HANDLER")
71
72
73
class AuthenticatedHandler(web.RequestHandler):
0 commit comments