Added missing return value to reload_world

This commit is contained in:
Daniel 2024-03-14 11:05:33 +01:00 committed by Blyron
parent 232cb8c250
commit a0cff71434
1 changed files with 4 additions and 1 deletions

View File

@ -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):