mirror of
https://github.com/django-components/django-components.git
synced 2025-11-19 14:26:46 +00:00
refactor: update comment
This commit is contained in:
parent
7d259ac291
commit
24ac50fb01
1 changed files with 1 additions and 0 deletions
|
|
@ -530,6 +530,7 @@ class ComponentMeta(ComponentMediaMeta):
|
|||
# NOTE: Using dataclasses with `slots=True` could be faster than using NamedTuple,
|
||||
# but in real world web pages that may load 1-2s, data access and instantiation
|
||||
# is only on the order of milliseconds, or about 0.1% of the overall time.
|
||||
# See https://github.com/django-components/django-components/pull/1467#discussion_r2449009201
|
||||
for data_class_name in ["Args", "Kwargs", "Slots", "TemplateData", "JsData", "CssData"]:
|
||||
data_class = attrs.get(data_class_name)
|
||||
# Not a class
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue