mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 00:17:49 +00:00
Add Self type to value_tracker.py
This commit is contained in:
parent
031adda503
commit
468fdf9003
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import numpy as np
|
||||
|
||||
from typing import Self
|
||||
from manimlib.mobject.mobject import Mobject
|
||||
from manimlib.utils.iterables import listify
|
||||
|
||||
|
|
@ -36,7 +36,7 @@ class ValueTracker(Mobject):
|
|||
return result[0]
|
||||
return result
|
||||
|
||||
def set_value(self, value: float | complex | np.ndarray):
|
||||
def set_value(self, value: float | complex | np.ndarray) -> Self:
|
||||
self.uniforms["value"][:] = value
|
||||
return self
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue