Skip to content

Commit bc344bb

Browse files
kovanclaude
andcommitted
gh-140771: Add class directive for xmlparser in pyexpat docs
Add a class directive for xmlparser so that all the :class:`xmlparser` references in the documentation resolve properly. Document that the type is available as xml.parsers.expat.XMLParserType. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7e2c9bd commit bc344bb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Doc/library/pyexpat.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,15 @@ This module provides one exception and one type object:
5151
Alias for :exc:`ExpatError`.
5252

5353

54+
.. class:: xmlparser
55+
56+
The type of XML parser objects returned by the :func:`ParserCreate` function.
57+
This type is available as ``xml.parsers.expat.XMLParserType``.
58+
59+
5460
.. data:: XMLParserType
5561

56-
The type of the return values from the :func:`ParserCreate` function.
62+
Alias for :class:`xmlparser`.
5763

5864
The :mod:`xml.parsers.expat` module contains two functions:
5965

0 commit comments

Comments
 (0)