west: fix for Python prior to 3.10

"type | None" syntax is only available with Python from version 3.10,
fix building with earlier 3.x Python versions.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2024-09-12 09:54:41 +02:00 committed by Carles Cufí
parent 0f4fde3769
commit dc5f1bfb3f

View File

@ -777,7 +777,7 @@ class ZephyrBinaryRunner(abc.ABC):
raise MissingProgram(program)
return ret
def get_rtt_address(self) -> int | None:
def get_rtt_address(self) -> Optional[int]:
'''Helper method for extracting a the RTT control block address.
If args.rtt_address was supplied, returns that.