Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong type hints for SyndicationFeed methods
Django's documentation mentions that the handles is of type xml.sax.saxutils.XMLGenerator. However, it is actually of type django.utils.xmlutils.SimplerXMLGenerator, which is a subclass of the former. Methods like `addQuickElement` (which are used in django's own implementation of add_root_elements) is actually defined for SimplerXMLGenerator, so this seems like the best fit (since subclasses will generally rely on this method).
- Loading branch information