Fix 3.8-incompatible annotation

This commit is contained in:
baldurk committed 2026-11-26 11:00:06 +00:00
1 parent 762d40b9bb
commit bcac4156fa
1 file changed
+2 -2
+2 -2
View File
@@ -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")