Skip to content

Commit

Permalink
Merge pull request #4922 from manics/entrypointtypes-help
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk authored Oct 5, 2024
2 parents 8c4dbd7 + e282205 commit 06507b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jupyterhub/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class JupyterHub(Application):

@default('classes')
def _load_classes(self):
classes = [Spawner, Authenticator, CryptKeeper]
classes = {Spawner, Authenticator, CryptKeeper}
for name, trait in self.traits(config=True).items():
# load entry point groups into configurable class list
# so that they show up in config files, etc.
Expand All @@ -298,9 +298,9 @@ def _load_classes(self):
e,
)
continue
if cls not in classes and isinstance(cls, Configurable):
classes.append(cls)
return classes
if issubclass(cls, Configurable):
classes.add(cls)
return list(classes)

load_groups = Dict(
Union([Dict(), List()]),
Expand Down

0 comments on commit 06507b4

Please sign in to comment.