diff --git a/django-stubs/utils/feedgenerator.pyi b/django-stubs/utils/feedgenerator.pyi index 1001dc835a..9aeda6de5c 100644 --- a/django-stubs/utils/feedgenerator.pyi +++ b/django-stubs/utils/feedgenerator.pyi @@ -1,6 +1,7 @@ import datetime from typing import Any from xml.sax import ContentHandler +from xml.sax.saxutils import XMLGenerator from typing_extensions import TypeAlias @@ -49,9 +50,13 @@ class SyndicationFeed: ) -> None: ... def num_items(self) -> int: ... def root_attributes(self) -> dict[Any, Any]: ... - def add_root_elements(self, handler: ContentHandler) -> None: ... + def add_root_elements(self, handler: XMLGenerator) -> None: ... def item_attributes(self, item: dict[str, Any]) -> dict[Any, Any]: ... - def add_item_elements(self, handler: ContentHandler, item: dict[str, Any]) -> None: ... + def add_item_elements( + self, + handler: XMLGenerator, + item: dict[str, Any], + ) -> None: ... def write(self, outfile: Any, encoding: Any) -> None: ... def writeString(self, encoding: str) -> str: ... def latest_post_date(self) -> datetime.datetime: ...