Skip to content

Commit

Permalink
Ignore some other type errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamghill committed Jul 25, 2024
1 parent bd81faa commit 87a3682
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions django_unicorn/components/unicorn_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def _set_default_template_name(self) -> None:

if hasattr(self, "template_html"):
try:
self.template_name = create_template(self.template_html)
self.template_name = create_template(self.template_html) # type: ignore
except AssertionError:
pass

Expand Down Expand Up @@ -866,7 +866,7 @@ def _get_component_class(module_name: str, class_name: str) -> Type[UnicornView]
request=request,
component_args=component_args,
**kwargs,
)
) # type: ignore
logger.debug(f"Retrieve {component_id} from views cache")

return component
Expand Down
2 changes: 1 addition & 1 deletion django_unicorn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def create_template(template_html: Union[str, Callable], engine_name: Optional[s
for engine in engines.all():
if engine_name is None or engine_name == engine.name:
try:
return engine.from_string(template_html)
return engine.from_string(template_html) # type: ignore
except NotImplementedError:
pass

Expand Down

0 comments on commit 87a3682

Please sign in to comment.