File tree Expand file tree Collapse file tree
dm_control/blender/mujoco_exporter Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def is_none(self) -> bool:
122122
123123 @property
124124 def is_armature (self ) -> bool :
125- return (
125+ return ( # pytype: disable=bad-return-type
126126 self .native_obj
127127 and self .native_obj .type == _ARMATURE
128128 and not self .native_bone
@@ -138,19 +138,19 @@ def is_bone(self) -> bool:
138138
139139 @property
140140 def is_mesh (self ) -> bool :
141- return self .native_obj and self .native_obj .type == _MESH
141+ return self .native_obj and self .native_obj .type == _MESH # pytype: disable=bad-return-type
142142
143143 @property
144144 def is_light (self ) -> bool :
145- return self .native_obj and self .native_obj .type == _LIGHT
145+ return self .native_obj and self .native_obj .type == _LIGHT # pytype: disable=bad-return-type
146146
147147 @property
148148 def is_camera (self ) -> bool :
149- return self .native_obj and self .native_obj .type == _CAMERA
149+ return self .native_obj and self .native_obj .type == _CAMERA # pytype: disable=bad-return-type
150150
151151 @property
152152 def is_empty (self ) -> bool :
153- return self .native_obj and self .native_obj .type == _EMPTY
153+ return self .native_obj and self .native_obj .type == _EMPTY # pytype: disable=bad-return-type
154154
155155 @property
156156 def name (self ) -> str :
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def light_builder(
7474 el .setAttribute ('pos' , vec_to_mjcf (transform .pos ))
7575 el .setAttribute ('dir' , vec_to_mjcf (transform .rot @ _OZ ))
7676 el .setAttribute ('directional' , directional )
77- el .setAttribute ('castshadow' , bool_to_mjcf (light .use_shadow ))
77+ el .setAttribute ('castshadow' , bool_to_mjcf (light .use_shadow )) # pytype: disable=wrong-arg-types
7878 el .setAttribute ('diffuse' , color_to_mjcf (light .color ))
7979 el .setAttribute ('attenuation' , attenuation )
8080 return el
You can’t perform that action at this time.
0 commit comments