nntplib: update for py39 (#4017)

Undocumented change, because these were never documented: https://bugs.python.org/issue39366

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-16 16:51:13 -07:00
committed by GitHub
parent 765cd11704
commit 23d85bb45e

View File

@@ -3,6 +3,7 @@
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)
@@ -72,8 +73,9 @@ class _NNTPBase:
def xhdr(self, hdr: str, str: Any, *, file: _File = ...) -> Tuple[str, List[str]]: ...
def xover(self, start: int, end: int, *, file: _File = ...) -> Tuple[str, List[Tuple[int, Dict[str, str]]]]: ...
def over(self, message_spec: Union[None, str, List[Any], Tuple[Any, ...]], *, file: _File = ...) -> Tuple[str, List[Tuple[int, Dict[str, str]]]]: ...
def xgtitle(self, group: str, *, file: _File = ...) -> Tuple[str, List[Tuple[str, str]]]: ...
def xpath(self, id: Any) -> Tuple[str, str]: ...
if sys.version_info < (3, 9):
def xgtitle(self, group: str, *, file: _File = ...) -> Tuple[str, List[Tuple[str, str]]]: ...
def xpath(self, id: Any) -> Tuple[str, str]: ...
def date(self) -> Tuple[str, datetime.datetime]: ...
def post(self, data: Union[bytes, Iterable[bytes]]) -> str: ...
def ihave(self, message_id: Any, data: Union[bytes, Iterable[bytes]]) -> str: ...