Skip to content

Commit 6a74aae

Browse files
committed
Address linting failure (?)
1 parent 188b5ca commit 6a74aae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

jupyter_server/gateway/gateway_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from jupyter_events import EventLogger
1919
from tornado import web
2020
from tornado.httpclient import AsyncHTTPClient, HTTPClientError, HTTPResponse
21-
from tornado.httputil import HTTPHeaders
2221
from traitlets import (
2322
Bool,
2423
Float,
@@ -42,7 +41,7 @@
4241
MESSAGE_KEY = "msg"
4342

4443
if ty.TYPE_CHECKING:
45-
from http.cookies import Morsel
44+
from tornado.httputil import HTTPHeaders
4645

4746

4847
class GatewayTokenRenewerMeta(ABCMeta, type(LoggingConfigurable)): # type: ignore[misc]
@@ -631,7 +630,7 @@ def load_connection_args(self, **kwargs):
631630

632631
return kwargs
633632

634-
def update_cookies(self, headers: HTTPHeaders) -> None:
633+
def update_cookies(self, headers: "HTTPHeaders") -> None:
635634
"""Update cookies from response headers"""
636635

637636
if not self.accept_cookies:

0 commit comments

Comments
 (0)