remove references to "Text" in Python 3-only stubs (#4251)

This commit is contained in:
Jelle Zijlstra
2020-06-22 03:39:01 -07:00
committed by GitHub
parent 66a9a4b5ce
commit e1d89e5742
6 changed files with 22 additions and 22 deletions

View File

@@ -4,7 +4,7 @@ import time
import gzip
import http.client
from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Protocol, Text, Tuple, Type, Union, overload
from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Protocol, Tuple, Type, Union, overload
from typing_extensions import Literal
from types import TracebackType
from datetime import datetime
@@ -93,7 +93,7 @@ WRAPPERS: Tuple[Type[DateTime], Type[Binary]] # undocumented
class ExpatParser: # undocumented
def __init__(self, target: Unmarshaller) -> None: ...
def feed(self, data: Union[Text, bytes]) -> None: ...
def feed(self, data: Union[str, bytes]) -> None: ...
def close(self) -> None: ...
class Marshaller: