mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
refactor(extensions): add Pydantic validation for extension configuration (#36767)
This commit is contained in:
committed by
GitHub
parent
fb6f3fbb4d
commit
5920cb57ea
@@ -564,9 +564,9 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
if backend_files := extension.backend:
|
||||
install_in_memory_importer(backend_files)
|
||||
|
||||
backend = extension.manifest.get("backend")
|
||||
backend = extension.manifest.backend
|
||||
|
||||
if backend and (entrypoints := backend.get("entryPoints")):
|
||||
if backend and (entrypoints := backend.entryPoints):
|
||||
for entrypoint in entrypoints:
|
||||
try:
|
||||
eager_import(entrypoint)
|
||||
|
||||
Reference in New Issue
Block a user