Skip to content

Commit b04d3b9

Browse files
authored
Merge pull request #294 from Zsailer/traitlets-5.0
add HasTraits to mixin class
2 parents 61a5061 + 71f1da4 commit b04d3b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_server/extension/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from jinja2 import Environment, FileSystemLoader
77

88
from traitlets import (
9+
HasTraits,
910
Unicode,
1011
List,
1112
Dict,
@@ -82,7 +83,7 @@ def _preparse_for_stopping_flags(Application, argv):
8283
app.exit(0)
8384

8485

85-
class ExtensionAppJinjaMixin:
86+
class ExtensionAppJinjaMixin(HasTraits):
8687
"""Use Jinja templates for HTML templates on top of an ExtensionApp."""
8788

8889
jinja2_options = Dict(
@@ -93,7 +94,6 @@ class ExtensionAppJinjaMixin:
9394
def _prepare_templates(self):
9495
# Get templates defined in a subclass.
9596
self.initialize_templates()
96-
9797
# Add templates to web app settings if extension has templates.
9898
if len(self.template_paths) > 0:
9999
self.settings.update({

0 commit comments

Comments
 (0)