Skip to content

Commit e3b3ac9

Browse files
committed
Use stdlib override when possible
1 parent 04dd3e7 commit e3b3ac9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jupyter_server/services/kernels/kernelmanager.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
from jupyter_core.utils import ensure_async
2525
from jupyter_events import EventLogger
2626
from jupyter_events.schema_registry import SchemaRegistryException
27-
from overrides import overrides
27+
28+
try:
29+
from typing import override as overrides
30+
except ImportError:
31+
from overrides import overrides
2832
from tornado import web
2933
from tornado.concurrent import Future
3034
from tornado.ioloop import IOLoop, PeriodicCallback

0 commit comments

Comments
 (0)