From 9e792805495ae02c85cde735055e97b2722ab9a7 Mon Sep 17 00:00:00 2001 From: Daraan Date: Mon, 19 Feb 2024 15:51:36 +0100 Subject: [PATCH] Fixed Actor.parent Can be None or an Actor --- PythonAPI/carla/source/carla/libcarla.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PythonAPI/carla/source/carla/libcarla.pyi b/PythonAPI/carla/source/carla/libcarla.pyi index b5f78c45a..6f2368d9a 100644 --- a/PythonAPI/carla/source/carla/libcarla.pyi +++ b/PythonAPI/carla/source/carla/libcarla.pyi @@ -101,7 +101,7 @@ class Actor(): ... @property - def parent() -> ["Actor"]: + def parent() -> Union["Actor", None]: """Actors may be attached to a parent actor that they will follow around. This is said actor.""" ...