mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
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:
committed by
Sebastian Rittau
parent
489180ffcc
commit
eaae246062
@@ -8,7 +8,7 @@ VERSION = ... # type: str
|
||||
|
||||
class ParseError(SyntaxError): ...
|
||||
|
||||
def iselement(element: Element) -> bool: ...
|
||||
def iselement(element: object) -> bool: ...
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user