Skip to content

Commit 10bc4b0

Browse files
authored
xml.dom.minidom: add missing type annotation of Element.getAttribute (#8350)
1 parent e42c983 commit 10bc4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/xml/dom/minidom.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class Element(Node):
127127
self, tagName, namespaceURI: str | None = ..., prefix: Any | None = ..., localName: Any | None = ...
128128
) -> None: ...
129129
def unlink(self) -> None: ...
130-
def getAttribute(self, attname): ...
130+
def getAttribute(self, attname: str) -> str: ...
131131
def getAttributeNS(self, namespaceURI: str, localName): ...
132132
def setAttribute(self, attname, value) -> None: ...
133133
def setAttributeNS(self, namespaceURI: str, qualifiedName: str, value) -> None: ...

0 commit comments

Comments
 (0)