Skip to content

Commit eaae246

Browse files
mthuurnesrittau
authored andcommitted
Change argument type for xml.etree.ElementTree.iselement() to object (#2642)
It should be possible to ask for every object whether it looks like an element. If only Elements are accepted, this function would always return True. Fixes #2629
1 parent 489180f commit eaae246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/2and3/xml/etree/ElementTree.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ VERSION = ... # type: str
88

99
class ParseError(SyntaxError): ...
1010

11-
def iselement(element: Element) -> bool: ...
11+
def iselement(element: object) -> bool: ...
1212

1313
_T = TypeVar('_T')
1414

0 commit comments

Comments
 (0)