mirror of
https://github.com/esphome/esphome.git
synced 2026-02-19 16:05:35 -07:00
Add type hints to _encode_string_symbols function
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user