From 7c52acf411b3b3be285761fc28faaa708e0b99a8 Mon Sep 17 00:00:00 2001 From: Juro Oravec Date: Tue, 11 Jun 2024 15:08:02 +0200 Subject: [PATCH] refactor: linter fixes --- src/django_components/component.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/django_components/component.py b/src/django_components/component.py index 6c375652..6e68bb81 100644 --- a/src/django_components/component.py +++ b/src/django_components/component.py @@ -361,7 +361,8 @@ class Component(View, metaclass=SimplifiedInterfaceMediaDefiningClass): - `kwargs` - Kwargs for the component. This is the same as calling the component as `{% component "my_comp" key1=val1 key2=val2 ... %}` - `slots` - Component slot fills. This is the same as pasing `{% fill %}` tags to the component. - Accepts a dictionary of `{ slot_name: slot_content }` where `slot_content` can be a string or render function. + Accepts a dictionary of `{ slot_name: slot_content }` where `slot_content` can be a string + or render function. - `escape_slots_content` - Whether the content from `slots` should be escaped. - `context` - A context (dictionary or Django's Context) within which the component is rendered. The keys on the context can be accessed from within the template. @@ -416,7 +417,8 @@ class Component(View, metaclass=SimplifiedInterfaceMediaDefiningClass): - `kwargs` - Kwargs for the component. This is the same as calling the component as `{% component "my_comp" key1=val1 key2=val2 ... %}` - `slots` - Component slot fills. This is the same as pasing `{% fill %}` tags to the component. - Accepts a dictionary of `{ slot_name: slot_content }` where `slot_content` can be a string or render function. + Accepts a dictionary of `{ slot_name: slot_content }` where `slot_content` can be a string + or render function. - `escape_slots_content` - Whether the content from `slots` should be escaped. - `context` - A context (dictionary or Django's Context) within which the component is rendered. The keys on the context can be accessed from within the template.