Skip to content

Commit 11a2ab8

Browse files
committed
Moves finalize back to Dash.__init__()
1 parent 7783fe8 commit 11a2ab8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dash/dash.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ def __init__(
361361
],
362362
"Read-only: can only be set in the Dash constructor",
363363
)
364+
self.config.finalize(
365+
"Invalid config key. Some settings are only available "
366+
"via the Dash constructor"
367+
)
364368

365369
# keep title as a class property for backwards compatibility
366370
self.title = title
@@ -433,10 +437,6 @@ def init_app(self, app=None, **kwargs):
433437
"Read-only: can only be set in the Dash constructor or during init_app()",
434438
)
435439

436-
self.config.finalize(
437-
"Invalid config key. Some settings are only available "
438-
"via the Dash constructor"
439-
)
440440
config = self.config
441441

442442
if app is not None:

0 commit comments

Comments
 (0)