From 4a33b2f3a0173d6192faa9f73fc4c335755fa12a Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sat, 6 Apr 2024 13:45:24 +0100 Subject: [PATCH] Add some types for xml.dom.minidom.Text (#11725) --- stdlib/xml/dom/minidom.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/xml/dom/minidom.pyi b/stdlib/xml/dom/minidom.pyi index 28bfa1b36..fae2c4d98 100644 --- a/stdlib/xml/dom/minidom.pyi +++ b/stdlib/xml/dom/minidom.pyi @@ -256,9 +256,9 @@ class Text(CharacterData): nodeName: str attributes: Incomplete data: Incomplete - def splitText(self, offset): ... + def splitText(self, offset: int) -> Self: ... def writexml(self, writer: SupportsWrite[str], indent: str = "", addindent: str = "", newl: str = "") -> None: ... - def replaceWholeText(self, content): ... + def replaceWholeText(self, content) -> Self | None: ... @property def isWhitespaceInElementContent(self) -> bool: ... @property