mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
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:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user