diff --git a/stdlib/2.7/xml/etree/ElementTree.pyi b/stdlib/2.7/xml/etree/ElementTree.pyi index b21243099..d26f0176a 100644 --- a/stdlib/2.7/xml/etree/ElementTree.pyi +++ b/stdlib/2.7/xml/etree/ElementTree.pyi @@ -21,7 +21,7 @@ class ParseError(SyntaxError): ... def iselement(element: 'Element') -> bool: ... -class Element: +class Element(Sequence['Element']): tag = ... # type: _str_or_bytes attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] text = ... # type: Optional[_str_or_bytes] diff --git a/stdlib/3.2/xml/etree/ElementTree.pyi b/stdlib/3.2/xml/etree/ElementTree.pyi index a78606db6..f14ea8747 100644 --- a/stdlib/3.2/xml/etree/ElementTree.pyi +++ b/stdlib/3.2/xml/etree/ElementTree.pyi @@ -21,7 +21,7 @@ class ParseError(SyntaxError): ... def iselement(element: 'Element') -> bool: ... -class Element: +class Element(Sequence['Element']): tag = ... # type: _str_or_bytes attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] text = ... # type: Optional[_str_or_bytes] diff --git a/stdlib/3.3/xml/etree/ElementTree.pyi b/stdlib/3.3/xml/etree/ElementTree.pyi index 488d6a5f9..c4e2f56ef 100644 --- a/stdlib/3.3/xml/etree/ElementTree.pyi +++ b/stdlib/3.3/xml/etree/ElementTree.pyi @@ -15,7 +15,7 @@ _Ss = TypeVar('_Ss', str, bytes) _T = TypeVar('_T') _str_or_bytes = Union[str, bytes] -class Element: +class Element(Sequence['Element']): tag = ... # type: _str_or_bytes attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] text = ... # type: Optional[_str_or_bytes] diff --git a/stdlib/3.4/xml/etree/ElementTree.pyi b/stdlib/3.4/xml/etree/ElementTree.pyi index 8b2eecdd1..175988213 100644 --- a/stdlib/3.4/xml/etree/ElementTree.pyi +++ b/stdlib/3.4/xml/etree/ElementTree.pyi @@ -15,7 +15,7 @@ _Ss = TypeVar('_Ss', str, bytes) _T = TypeVar('_T') _str_or_bytes = Union[str, bytes] -class Element: +class Element(Sequence['Element']): tag = ... # type: _str_or_bytes attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] text = ... # type: Optional[_str_or_bytes] diff --git a/stdlib/3.5/xml/etree/ElementTree.pyi b/stdlib/3.5/xml/etree/ElementTree.pyi index 8b2eecdd1..175988213 100644 --- a/stdlib/3.5/xml/etree/ElementTree.pyi +++ b/stdlib/3.5/xml/etree/ElementTree.pyi @@ -15,7 +15,7 @@ _Ss = TypeVar('_Ss', str, bytes) _T = TypeVar('_T') _str_or_bytes = Union[str, bytes] -class Element: +class Element(Sequence['Element']): tag = ... # type: _str_or_bytes attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] text = ... # type: Optional[_str_or_bytes] diff --git a/stdlib/3/xml/etree/ElementTree.pyi b/stdlib/3/xml/etree/ElementTree.pyi index f673f9726..ed42e4fca 100644 --- a/stdlib/3/xml/etree/ElementTree.pyi +++ b/stdlib/3/xml/etree/ElementTree.pyi @@ -11,7 +11,7 @@ _Ss = TypeVar('_Ss', str, bytes) _T = TypeVar('_T') _str_or_bytes = Union[str, bytes] -class _ElementInterface: +class _ElementInterface(Sequence['_ElementInterface']): tag = ... # type: _str_or_bytes attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] text = ... # type: Optional[_str_or_bytes]