Python 3.11 removals in stdlib (#6374)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Alex Waygood
2021-11-25 17:34:12 +00:00
committed by GitHub
parent ab026bfecb
commit 9707cb00f6
13 changed files with 159 additions and 88 deletions

View File

@@ -1,3 +1,4 @@
import sys
from typing import IO, Any, Sequence, Tuple, Union
from typing_extensions import Literal
from xml.dom.minidom import Document, DOMImplementation, Element, Text
@@ -66,7 +67,8 @@ class DOMEventStream:
bufsize: int
def __init__(self, stream: IO[bytes], parser: XMLReader, bufsize: int) -> None: ...
pulldom: Any
def __getitem__(self, pos): ...
if sys.version_info < (3, 11):
def __getitem__(self, pos): ...
def __next__(self): ...
def __iter__(self): ...
def getEvent(self) -> _Event: ...