mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Drop Python 3.3 support from several stubs (#2266)
* Drop Python 3.3 support from importlib stubs * Drop Python 3.3 support from html and symbol stubs
This commit is contained in:
committed by
Jelle Zijlstra
parent
1184726417
commit
b05e99297c
@@ -3,7 +3,6 @@
|
||||
import datetime
|
||||
import socket
|
||||
import ssl
|
||||
import sys
|
||||
from typing import Any, Dict, IO, Iterable, List, NamedTuple, Optional, Tuple, TypeVar, Union
|
||||
|
||||
_SelfT = TypeVar('_SelfT', bound=_NNTPBase)
|
||||
@@ -51,9 +50,8 @@ class _NNTPBase:
|
||||
|
||||
def __init__(self, file: IO[bytes], host: str,
|
||||
readermode: Optional[bool] = ..., timeout: float = ...) -> None: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
def __enter__(self: _SelfT) -> _SelfT: ...
|
||||
def __exit__(self, *args: Any) -> None: ...
|
||||
def __enter__(self: _SelfT) -> _SelfT: ...
|
||||
def __exit__(self, *args: Any) -> None: ...
|
||||
def getwelcome(self) -> str: ...
|
||||
def getcapabilities(self) -> Dict[str, List[str]]: ...
|
||||
def set_debuglevel(self, level: int) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user