Skip to content

Commit dc5f1bf

Browse files
lyakhcarlescufi
authored andcommitted
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 <[email protected]>
1 parent 0f4fde3 commit dc5f1bf

File tree

1 file changed

+1
-1
lines changed
  • scripts/west_commands/runners

1 file changed

+1
-1
lines changed

scripts/west_commands/runners/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ def require(program: str, path: Optional[str] = None) -> str:
777777
raise MissingProgram(program)
778778
return ret
779779

780-
def get_rtt_address(self) -> int | None:
780+
def get_rtt_address(self) -> Optional[int]:
781781
'''Helper method for extracting a the RTT control block address.
782782
783783
If args.rtt_address was supplied, returns that.

0 commit comments

Comments
 (0)