Skip to content

Commit

Permalink
west: fix for Python prior to 3.10
Browse files Browse the repository at this point in the history
"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>
  • Loading branch information
lyakh authored and carlescufi committed Sep 12, 2024
1 parent 0f4fde3 commit dc5f1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/west_commands/runners/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def require(program: str, path: Optional[str] = None) -> str:
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.
Expand Down

0 comments on commit dc5f1bf

Please sign in to comment.