mirror of
https://github.com/django-components/django-components.git
synced 2025-11-12 11:57:38 +00:00
refactor: make it optional having to specify parent class of Args, Kwargs, Slots, etc (#1466)
This commit is contained in:
parent
0aeb96fa40
commit
c37628dea0
34 changed files with 661 additions and 299 deletions
|
|
@ -1,5 +1,3 @@
|
|||
from typing import NamedTuple
|
||||
|
||||
import pytest
|
||||
from django.template import Context, Template
|
||||
from django.template.exceptions import TemplateSyntaxError
|
||||
|
|
@ -313,7 +311,7 @@ class TestErrorFallbackComponent:
|
|||
def test_error_fallback_nested_inside_another(self, components_settings):
|
||||
@register("broken")
|
||||
class BrokenComponent(Component):
|
||||
class Kwargs(NamedTuple):
|
||||
class Kwargs:
|
||||
msg: str
|
||||
|
||||
def on_render(self, context: Context, template: Template):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue