From f3cec3c72b9c0c7dfbdb5cda208cecc9567754ec Mon Sep 17 00:00:00 2001 From: Alina Lenk Date: Tue, 7 May 2024 23:37:06 +0200 Subject: [PATCH 3/3] generate_packets.py: fix unescaped union type annotation This caused build failures with Python versions below 3.10 Reported by Marko Lindqvist Signed-off-by: Alina Lenk --- common/generate_packets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/generate_packets.py b/common/generate_packets.py index 09d0c28c5b..26898d6f2c 100755 --- a/common/generate_packets.py +++ b/common/generate_packets.py @@ -424,7 +424,7 @@ class Location: of this location's corresponding field address""" return "field_addr.sub_location" + self.json_depth * "->sub_location" - def __matmul__(self, packet: str | None) -> str: + def __matmul__(self, packet: "str | None") -> str: """self @ packet Code fragment of this location in the given packet, or in local variables if packet is None""" -- 2.34.1