Skip to content

Commit

Permalink
fix wrong variance
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Oct 22, 2024
1 parent 1155e14 commit 5ce2384
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions manim/mobject/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
from manim.mobject.opengl.opengl_mobject import OpenGLMobject


T_co = TypeVar("T_co", covariant=True, bound="Mobject | OpenGLMobject")
T = TypeVar("T", bound="Mobject | OpenGLMobject")

__all__ = [
"_AnimationBuilder",
"_UpdaterBuilder",
]


class _AnimationBuilder(Generic[T_co]):
def __init__(self, mobject: T_co):
class _AnimationBuilder(Generic[T]):
def __init__(self, mobject: T):
self.mobject = mobject
self.mobject.generate_target()

Expand Down Expand Up @@ -84,10 +84,10 @@ def build(self) -> Animation:
return anim


class _UpdaterBuilder(Generic[T_co]):
class _UpdaterBuilder(Generic[T]):
"""Syntactic sugar for adding updaters to mobjects."""

def __init__(self, mobject: T_co):
def __init__(self, mobject: T):
self._mobject = mobject

def __getattr__(self, name: str, /):
Expand Down

0 comments on commit 5ce2384

Please sign in to comment.