From 3f78f0f9878eac84c63f9853b391d05ada15e604 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 14 Mar 2024 11:05:33 +0100 Subject: [PATCH] Added missing return value to reload_world --- PythonAPI/carla/source/carla/libcarla.pyi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PythonAPI/carla/source/carla/libcarla.pyi b/PythonAPI/carla/source/carla/libcarla.pyi index 948be2f2e..59a5dbf4e 100644 --- a/PythonAPI/carla/source/carla/libcarla.pyi +++ b/PythonAPI/carla/source/carla/libcarla.pyi @@ -841,7 +841,7 @@ class Client(): `World`\n """ - def reload_world(self, reset_settings=True): + def reload_world(self, reset_settings=True) -> World: """Reload the current world, note that a new world is created with default settings using the same map. All actors present in the world will be destroyed, but traffic manager instances will stay alive. Args: @@ -849,6 +849,9 @@ class Client(): Raises: `RuntimeError` when corresponding. + + Returns: + `World`\n """ def replay_file(self, name: str, start: float, duration: float, follow_id: int, replay_sensors: bool):