From e7251bcc2f7fddb9229a96dafe049083040f6392 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Sun, 16 Aug 2020 11:59:07 +0200 Subject: [PATCH] handle_play_like_call decorator to use functools.wraps this way, decorated methods - typically Scene.play - have a decent docstring so first-time users can use help() --- manimlib/scene/scene.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manimlib/scene/scene.py b/manimlib/scene/scene.py index 1f4e4926..f6e2da31 100644 --- a/manimlib/scene/scene.py +++ b/manimlib/scene/scene.py @@ -3,6 +3,7 @@ import random import platform import itertools as it import logging +from functools import wraps from tqdm import tqdm as ProgressDisplay import numpy as np @@ -372,6 +373,7 @@ class Scene(object): return animations def handle_play_like_call(func): + @wraps(func) def wrapper(self, *args, **kwargs): self.update_skipping_status() should_write = not self.skip_animations