From f27fd21a0478d36ae63a76e667efea8073982f7c Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 21 Dec 2024 06:55:14 -0600 Subject: [PATCH] chore(django_docutils) Fix redundant cast src/django_docutils/template.py:71: error: Redundant cast to "str" [redundant-cast] Found 1 error in 1 file (checked 55 source files) --- src/django_docutils/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/django_docutils/template.py b/src/django_docutils/template.py index 33cb7313..d85b53c4 100644 --- a/src/django_docutils/template.py +++ b/src/django_docutils/template.py @@ -68,7 +68,7 @@ def render( context["csrf_token"] = csrf_token_lazy(request) context = {"source": self.source, "writer_name": "html"} - return mark_safe(t.cast("str", core.publish_parts(**context)["html_body"])) + return mark_safe(core.publish_parts(**context)["html_body"]) register_pygments_directive()