mirror of
https://github.com/django-components/django-components.git
synced 2025-11-17 21:57:07 +00:00
refactor: make it optional having to specify parent class of Args, Kwargs, Slots, etc
This commit is contained in:
parent
c66bd21231
commit
0255782ee2
31 changed files with 620 additions and 294 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import re
|
||||
from typing import NamedTuple
|
||||
|
||||
import pytest
|
||||
from django.template import Context, Template
|
||||
|
|
@ -21,7 +20,7 @@ class TestDynamicComponent:
|
|||
Variable: <strong>{{ variable }}</strong>
|
||||
"""
|
||||
|
||||
class Kwargs(NamedTuple):
|
||||
class Kwargs:
|
||||
variable: str
|
||||
variable2: str
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue