From 089cda54c5adff8bda4717d7e998251da9087d00 Mon Sep 17 00:00:00 2001 From: Juro Oravec Date: Tue, 16 Apr 2024 14:37:04 +0200 Subject: [PATCH] refactor: fix tests --- tests/test_component.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_component.py b/tests/test_component.py index 06d52c31..3bc05264 100644 --- a/tests/test_component.py +++ b/tests/test_component.py @@ -208,7 +208,7 @@ class ComponentTest(SimpleTestCase): class SlottedComponent(component.Component): template_name = "slotted_template.html" - def get_context_data(self, name: str | None = None) -> component.Dict[str, component.Any]: + def get_context_data(self, name: component.Optional[str] = None) -> component.Dict[str, component.Any]: return { "name": name, } @@ -542,7 +542,7 @@ class SlotBehaviorTests(SimpleTestCase): class SlottedComponent(component.Component): template_name = "slotted_template.html" - def get_context_data(self, name: str | None = None) -> component.Dict[str, component.Any]: + def get_context_data(self, name: component.Optional[str] = None) -> component.Dict[str, component.Any]: return { "name": name, }