Specify type of argument in Mobject.add

This commit is contained in:
Grant Sanderson 2024-02-09 17:48:25 -06:00
parent 578427543c
commit d44e248277

View file

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