mirror of
https://github.com/django-components/django-components.git
synced 2025-09-26 15:39:08 +00:00
refactor: fix types for render and render_to_response
This commit is contained in:
parent
bb114b4002
commit
623a5fe365
1 changed files with 2 additions and 2 deletions
|
@ -261,7 +261,7 @@ class Component(View, metaclass=SimplifiedInterfaceMediaDefiningClass):
|
||||||
|
|
||||||
def render(
|
def render(
|
||||||
self,
|
self,
|
||||||
context_data: Dict[str, Any],
|
context_data: Union[Dict[str, Any], Context],
|
||||||
slots_data: Optional[Dict[SlotName, str]] = None,
|
slots_data: Optional[Dict[SlotName, str]] = None,
|
||||||
escape_slots_content: bool = True,
|
escape_slots_content: bool = True,
|
||||||
) -> str:
|
) -> str:
|
||||||
|
@ -288,7 +288,7 @@ class Component(View, metaclass=SimplifiedInterfaceMediaDefiningClass):
|
||||||
|
|
||||||
def render_to_response(
|
def render_to_response(
|
||||||
self,
|
self,
|
||||||
context_data: Dict[str, Any],
|
context_data: Union[Dict[str, Any], Context],
|
||||||
slots_data: Optional[Dict[SlotName, str]] = None,
|
slots_data: Optional[Dict[SlotName, str]] = None,
|
||||||
escape_slots_content: bool = True,
|
escape_slots_content: bool = True,
|
||||||
*args: Any,
|
*args: Any,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue