component: imports override _get_dependencies_imports (#1859)

This commit is contained in:
Masen Furer 2023-09-24 01:46:35 -07:00 committed by GitHub
parent 582da1ecb2
commit 2f284a08b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -603,7 +603,7 @@ class Component(Base, ABC):
imports = {}
if self.library is not None and self.tag is not None:
imports[self.library] = {self.import_var}
return {**imports, **self._get_dependencies_imports()}
return {**self._get_dependencies_imports(), **imports}
def get_imports(self) -> imports.ImportDict:
"""Get all the libraries and fields that are used by the component.