From bcac4156faad3df4c471fc91246f57249046fd92 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 5 Nov 2026 11:30:50 +0000 Subject: [PATCH] Fix 3.8-incompatible annotation --- util/test/tests/Vulkan/VK_Annotations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/test/tests/Vulkan/VK_Annotations.py b/util/test/tests/Vulkan/VK_Annotations.py index e4fd559a1..90c0a91ae 100644 --- a/util/test/tests/Vulkan/VK_Annotations.py +++ b/util/test/tests/Vulkan/VK_Annotations.py @@ -1,4 +1,4 @@ -from typing import Callable +from typing import Callable, Optional import renderdoc as rd import rdtest @@ -12,7 +12,7 @@ class VK_Annotations(rdtest.Annotations): super().check_resource_annotations() super().check_command_annotations(True) - annot: Callable[[str], rd.SDObject | None] = lambda x: annots.FindChildByKeyPath(x) + annot: Callable[[str], Optional[rd.SDObject]] = lambda x: annots.FindChildByKeyPath(x) # Check annotations attached to indirect draws draw_indirect_count = self.find_action("DrawIndirectCount")