From e902d8d1fccc7231ae9310410e225eb72ee2978d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 23 Aug 2026 17:51:09 -0500 Subject: [PATCH] Widen _collect_sources exclude to Collection --- esphome/build_gen/arduino8266.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/build_gen/arduino8266.py b/esphome/build_gen/arduino8266.py index d957023de1..bc8c1de3fa 100644 --- a/esphome/build_gen/arduino8266.py +++ b/esphome/build_gen/arduino8266.py @@ -14,6 +14,7 @@ from the build flags with the same precedence as the PlatformIO builder. from __future__ import annotations +from collections.abc import Collection from dataclasses import dataclass import hashlib import logging @@ -615,7 +616,7 @@ _PLAIN_LINKER_PREFIXES = ("-T", "-Xlinker") _PLAIN_DRIVER_LINK_PREFIXES = ("-fuse-ld=", "--specs=", "-specs=") -def _collect_sources(root: Path, exclude: set[str] = frozenset()) -> list[Path]: +def _collect_sources(root: Path, exclude: Collection[str] = frozenset()) -> list[Path]: return sorted( p for p in root.rglob("*")