From d8c52297abc28bb007bfa86065a2675b4c45c854 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sat, 13 Dec 2025 11:54:24 +0900 Subject: [PATCH] Add type hints to _encode_string_symbols function --- esphome/writer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/writer.py b/esphome/writer.py index 4785ad5f72..c94fb8e304 100644 --- a/esphome/writer.py +++ b/esphome/writer.py @@ -281,7 +281,9 @@ def generate_version_h(): ) -def _encode_string_symbols(text, prefix, bits, bit_suffix, endian, endian_suffix): +def _encode_string_symbols( + text: str, prefix: str, bits: int, bit_suffix: str, endian: str, endian_suffix: str +) -> list[str]: """Encode a string as linker symbols for given word size and endianness.""" symbols = [] # Pad to word boundary with NUL (build time strings need trailing NUL)