From 09ee2df5d2f2f68bfc0224e68cc45617d6ddc760 Mon Sep 17 00:00:00 2001 From: JasonGrace2282 Date: Thu, 30 May 2024 13:21:49 -0400 Subject: [PATCH] Fix problem with no docstring being None --- manim/utils/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manim/utils/decorators.py b/manim/utils/decorators.py index 41d49b0815..996a8ab2ee 100644 --- a/manim/utils/decorators.py +++ b/manim/utils/decorators.py @@ -30,7 +30,7 @@ def some_private_method(self): @internal # does not do anything, don't use def _my_second_private_method(self): ... """ - doc = getattr(f, "__doc__", "") + doc: str = f.__doc__ if f.__doc__ is not None else "" newblockline = "\n " directive = f".. warning::{newblockline}" directive += newblockline.join(