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
This commit is contained in:
Maarten ter Huurne
2018-11-28 02:34:27 +01:00
committed by Sebastian Rittau
parent 489180ffcc
commit eaae246062

View File

@@ -8,7 +8,7 @@ VERSION = ... # type: str
class ParseError(SyntaxError): ...
def iselement(element: Element) -> bool: ...
def iselement(element: object) -> bool: ...
_T = TypeVar('_T')