Skip to content

Commit b7283a3

Browse files
Martin Huschenbettcopybara-github
authored andcommitted
Automated Code Change
PiperOrigin-RevId: 696531837 Change-Id: I95873cbf3a29a8f925c67af76b69fb56dbbec079
1 parent 5037fd2 commit b7283a3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

dm_control/blender/mujoco_exporter/blender_scene.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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:

dm_control/blender/mujoco_exporter/mujoco_scene.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)