From 67f6140ebca60bfde0fb068f10b428320c6c67cd Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 16 Mar 2022 12:03:33 +0100 Subject: [PATCH] Relax type checking on ExtensionApp.serverapp (#739) --- jupyter_server/extension/application.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyter_server/extension/application.py b/jupyter_server/extension/application.py index 108b270670..4bae58f6e9 100644 --- a/jupyter_server/extension/application.py +++ b/jupyter_server/extension/application.py @@ -8,11 +8,11 @@ from jupyter_core.application import NoStart from tornado.log import LogFormatter from tornado.web import RedirectHandler +from traitlets import Any from traitlets import Bool from traitlets import default from traitlets import Dict from traitlets import HasTraits -from traitlets import Instance from traitlets import List from traitlets import Unicode from traitlets.config import Config @@ -207,7 +207,7 @@ def _default_url(self): ] # A ServerApp is not defined yet, but will be initialized below. - serverapp = Instance(ServerApp) + serverapp = Any() @default("serverapp") def _default_serverapp(self):