From d462c31bb9fa5c7ac13b4f90a248b016987cc550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20J=C3=A4rventaus?= Date: Wed, 2 Dec 2026 13:43:10 +0200 Subject: [PATCH] Very minor annotation change I finally figured out how to make this annotation work --- src/wikitextprocessor/parser.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/wikitextprocessor/parser.py b/src/wikitextprocessor/parser.py index a947638..6429ac5 100644 --- a/src/wikitextprocessor/parser.py +++ b/src/wikitextprocessor/parser.py @@ -517,6 +517,15 @@ def find_html( attr_value: str, ) -> Iterator["HTMLNode"]: ... + @overload + def find_html( + self, + target_tags: str | list[str], + *, + attr_name: str, + attr_value: str, + ) -> Iterator["HTMLNode"]: ... + @overload def find_html( self,