Skip to content

Commit

Permalink
add type to context var
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed Mar 30, 2023
1 parent f75e2e7 commit e9084b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyter_server/base/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Distributed under the terms of the Modified BSD License.
from __future__ import annotations

import contextvars
import functools
import inspect
import ipaddress
Expand All @@ -14,6 +13,7 @@
import traceback
import types
import warnings
from contextvars import ContextVar
from http.client import responses
from typing import TYPE_CHECKING, Awaitable
from urllib.parse import urlparse
Expand Down Expand Up @@ -67,7 +67,7 @@ def log():
return app_log


CURRENT_JUPYTER_HANDLER = contextvars.ContextVar("CURRENT_JUPYTER_HANDLER")
CURRENT_JUPYTER_HANDLER: ContextVar[JupyterHandler] = ContextVar("CURRENT_JUPYTER_HANDLER")


class AuthenticatedHandler(web.RequestHandler):
Expand Down

0 comments on commit e9084b3

Please sign in to comment.