Skip to content

Commit 6bd822e

Browse files
authored
Merge branch 'deprecation' into deprecate-LogoutButton
2 parents 3b0ab61 + 376599e commit 6bd822e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

dash/dash.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,4 +2256,9 @@ def run_server(self, *args, **kwargs):
22562256
22572257
See `app.run` for usage information.
22582258
"""
2259+
warnings.warn(
2260+
DeprecationWarning(
2261+
"Dash.run_server is deprecated and will be removed in Dash 3.0"
2262+
)
2263+
)
22592264
self.run(*args, **kwargs)

dash/development/component_loader.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import collections
22
import json
33
import os
4+
import warnings
5+
46

57
from ._py_components_generation import (
68
generate_class_file,
@@ -34,7 +36,13 @@ def load_components(metadata_path, namespace="default_namespace"):
3436
components -- a list of component objects with keys
3537
`type`, `valid_kwargs`, and `setup`.
3638
"""
37-
39+
warnings.warn(
40+
DeprecationWarning(
41+
"Dynamic components loading has been deprecated and will be removed"
42+
" in dash 3.0.\n"
43+
f"Update {namespace} to generate components with dash-generate-components"
44+
)
45+
)
3846
# Register the component lib for index include.
3947
ComponentRegistry.registry.add(namespace)
4048
components = []

0 commit comments

Comments
 (0)