fix: type component registry

This commit is contained in:
Gabriel Dugny 2024-03-24 14:25:18 +01:00
parent 04160f4e0b
commit 3952fd7437
2 changed files with 23 additions and 12 deletions

View file

@ -164,6 +164,7 @@ def _get_dir_path_from_component_module_path(component_module_path: str, candida
class Component(View, metaclass=SimplifiedInterfaceMediaDefiningClass):
# Either template_name or template must be set on subclass OR subclass must implement get_template() with
# non-null return.
class_hash: ClassVar[int]
template_name: ClassVar[Optional[str]] = None
template: Optional[str] = None
js: Optional[str] = None