[docutils] Fix type of standalone.Reader.document (#14447)

This commit is contained in:
Adam Dangoor authored and GitHub committed 2025-07-26 19:45:12 +02:00
1 parent 7864edbc39
commit e2d0c451e2
1 file changed
+2 -2
@@ -1,11 +1,11 @@
from typing import ClassVar, Final, TypeVar
from docutils import readers
from docutils import nodes, readers
__docformat__: Final = "reStructuredText"
_S = TypeVar("_S", bound=str | bytes)
class Reader(readers.Reader[_S]):
document: None # type: ignore[assignment]
document: nodes.document | None # type: ignore[assignment]
config_section_dependencies: ClassVar[tuple[str, ...]]