Skip to content

Commit

Permalink
Fix problem with no docstring being None
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed May 30, 2024
1 parent 715dcf5 commit 09ee2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manim/utils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 09ee2df

Please sign in to comment.