From 10bc4b058462c4343a2cca9adfa7b25979c45562 Mon Sep 17 00:00:00 2001 From: Tetsuo Kiso Date: Thu, 21 Jul 2022 15:18:58 +0900 Subject: [PATCH] xml.dom.minidom: add missing type annotation of Element.getAttribute (#8350) --- stdlib/xml/dom/minidom.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/xml/dom/minidom.pyi b/stdlib/xml/dom/minidom.pyi index d8bcc299b..bfeae6e90 100644 --- a/stdlib/xml/dom/minidom.pyi +++ b/stdlib/xml/dom/minidom.pyi @@ -127,7 +127,7 @@ class Element(Node): self, tagName, namespaceURI: str | None = ..., prefix: Any | None = ..., localName: Any | None = ... ) -> None: ... def unlink(self) -> None: ... - def getAttribute(self, attname): ... + def getAttribute(self, attname: str) -> str: ... def getAttributeNS(self, namespaceURI: str, localName): ... def setAttribute(self, attname, value) -> None: ... def setAttributeNS(self, namespaceURI: str, qualifiedName: str, value) -> None: ...