Skip to content

Commit

Permalink
Specify type of argument in Mobject.add
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Feb 9, 2024
1 parent 5784275 commit d44e248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manimlib/scene/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ class ThreeDScene(Scene):
default_frame_orientation = (-30, 70)
always_depth_test = True

def add(self, *mobjects, set_depth_test: bool = True):
def add(self, *mobjects: Mobject, set_depth_test: bool = True):
for mob in mobjects:
if set_depth_test and not mob.is_fixed_in_frame() and self.always_depth_test:
mob.apply_depth_test()
Expand Down

0 comments on commit d44e248

Please sign in to comment.