mirror of
https://github.com/django-components/django-components.git
synced 2025-08-07 07:48:00 +00:00
fix: type component registry
This commit is contained in:
parent
04160f4e0b
commit
3952fd7437
2 changed files with 23 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue