Add Self type to value_tracker.py

This commit is contained in:
Grant Sanderson 2023-01-31 14:19:58 -08:00
parent 031adda503
commit 468fdf9003

View file

@ -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