Skip to content

Commit

Permalink
add typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Oct 22, 2024
1 parent 41f0673 commit 23381b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manim/mobject/graphing/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ def __init__(

super().__init__(**kwargs)

def get_function(self):
def get_function(self) -> Callable[[float], Point3D]:
return self.function

def get_point_from_function(self, t):
def get_point_from_function(self, t: float) -> Point3D:
return self.function(t)

def generate_points(self) -> Self:
Expand Down

0 comments on commit 23381b3

Please sign in to comment.