diff --git a/gymnasium/envs/box2d/lunar_lander.py b/gymnasium/envs/box2d/lunar_lander.py index 976647b15..63ebae816 100644 --- a/gymnasium/envs/box2d/lunar_lander.py +++ b/gymnasium/envs/box2d/lunar_lander.py @@ -374,7 +374,7 @@ def reset( # Create Lander body initial_y = VIEWPORT_H / SCALE initial_x = VIEWPORT_W / SCALE / 2 - self.lander: Box2D.b2Body = self.world.CreateDynamicBody( + self.lander = self.world.CreateDynamicBody( position=(initial_x, initial_y), angle=0.0, fixtures=fixtureDef( diff --git a/pyproject.toml b/pyproject.toml index 8e0235936..54ec2f79e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -157,7 +157,6 @@ reportCallIssue = "none" # TODO fix one by one reportOperatorIssue = "none" # TODO fix one by one reportInvalidTypeForm = "none" # TODO fix one by one reportOptionalMemberAccess = "none" # TODO fix one by one -reportRedeclaration = "none" # TODO fix one by one reportAssignmentType = "none" # TODO fix one by one