mirror of
https://github.com/django-components/django-components.git
synced 2025-09-22 13:42:27 +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(
|
||||
self,
|
||||
context_data: Dict[str, Any],
|
||||
context_data: Union[Dict[str, Any], Context],
|
||||
slots_data: Optional[Dict[SlotName, str]] = None,
|
||||
escape_slots_content: bool = True,
|
||||
) -> str:
|
||||
|
@ -288,7 +288,7 @@ class Component(View, metaclass=SimplifiedInterfaceMediaDefiningClass):
|
|||
|
||||
def render_to_response(
|
||||
self,
|
||||
context_data: Dict[str, Any],
|
||||
context_data: Union[Dict[str, Any], Context],
|
||||
slots_data: Optional[Dict[SlotName, str]] = None,
|
||||
escape_slots_content: bool = True,
|
||||
*args: Any,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue