Skip to content

Commit

Permalink
chore(django_docutils) Fix redundant cast
Browse files Browse the repository at this point in the history
src/django_docutils/template.py:71: error: Redundant cast to "str"  [redundant-cast]
Found 1 error in 1 file (checked 55 source files)
  • Loading branch information
tony committed Dec 21, 2024
1 parent 9e18879 commit f27fd21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/django_docutils/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit f27fd21

Please sign in to comment.