A community-maintained Python framework for creating mathematical animations.
Set flake8 not to ignore undefined names in Python code (#1947)
Christian Claussf88b372fb41f
diff --git a/.flake8 b/.flake8index 78d480a83..a3875c056 100644--- a/.flake8+++ b/.flake8@@ -13,7 +13,7 @@ extend-ignore = E203, E266,B006#Code Changes - Remove later -remove from .pre-commit-config.yaml- F405, F403, F401, F821, B008, B009, B010, E731+ F405, F403, F401, B008, B009, B010, E731#docstring Formatting - Remove Later -remove from .pre-commit-config.yamlRST304, D400, D401, D205, D105, D103, RST210, RST303, D102, D102, D107, RST212, D200, D100, D101,diff --git a/manim/animation/transform_matching_parts.py b/manim/animation/transform_matching_parts.pyindex f8bef2654..9d58c36f1 100644--- a/manim/animation/transform_matching_parts.py+++ b/manim/animation/transform_matching_parts.py@@ -2,8 +2,7 @@__all__ = ["TransformMatchingShapes", "TransformMatchingTex"]--from typing import List, Optional+from typing import TYPE_CHECKING, List, Optionalimport numpy as np@@ -16,6 +15,9 @@ from .composition import AnimationGroupfrom .fading import FadeIn, FadeOutfrom .transform import FadeTransformPieces, Transform+if TYPE_CHECKING:+ from ..scene.scene import Scene+class TransformMatchingAbstractBase(AnimationGroup):"""Abstract base class for transformations that keep track of matching parts.