@@ -35,15 +35,18 @@ class Corridor(composer.Arena, metaclass=abc.ABCMeta):
3535 def regenerate (self , random_state ):
3636 raise NotImplementedError
3737
38- @abc .abstractproperty
38+ @property
39+ @abc .abstractmethod
3940 def corridor_length (self ):
4041 raise NotImplementedError
4142
42- @abc .abstractproperty
43+ @property
44+ @abc .abstractmethod
4345 def corridor_width (self ):
4446 raise NotImplementedError
4547
46- @abc .abstractproperty
48+ @property
49+ @abc .abstractmethod
4750 def ground_geoms (self ):
4851 raise NotImplementedError
4952
@@ -175,6 +178,7 @@ def ground_geoms(self):
175178class GapsCorridor (EmptyCorridor ):
176179 """A corridor that consists of multiple platforms separated by gaps."""
177180
181+ # pylint: disable=arguments-renamed
178182 def _build (self ,
179183 platform_length = 1. ,
180184 gap_length = 2.5 ,
@@ -236,6 +240,8 @@ def _build(self,
236240
237241 self ._ground_body = self ._mjcf_root .worldbody .add ('body' , name = 'ground' )
238242
243+ # pylint: enable=arguments-renamed
244+
239245 def regenerate (self , random_state ):
240246 """Regenerates this corridor.
241247
@@ -334,6 +340,7 @@ def ground_geoms(self):
334340class WallsCorridor (EmptyCorridor ):
335341 """A corridor obstructed by multiple walls aligned against the two sides."""
336342
343+ # pylint: disable=arguments-renamed
337344 def _build (self ,
338345 wall_gap = 2.5 ,
339346 wall_width = 2.5 ,
@@ -382,6 +389,8 @@ def _build(self,
382389 self ._swap_wall_side = swap_wall_side
383390 self ._include_initial_padding = include_initial_padding
384391
392+ # pylint: enable=arguments-renamed
393+
385394 def regenerate (self , random_state ):
386395 """Regenerates this corridor.
387396
0 commit comments