@@ -3,7 +3,7 @@ import socket
33import ssl
44import sys
55from _typeshed import Self
6- from typing import IO , Any , Dict , Iterable , List , NamedTuple , Tuple , Union
6+ from typing import IO , Any , Iterable , NamedTuple , Tuple , Union
77
88_File = Union [IO [bytes ], bytes , str , None ]
99
@@ -28,10 +28,12 @@ class GroupInfo(NamedTuple):
2828class ArticleInfo (NamedTuple ):
2929 number : int
3030 message_id : str
31- lines : List [bytes ]
31+ lines : list [bytes ]
3232
3333def decode_header (header_str : str ) -> str : ...
3434
35+ _list = list # conflicts with a method named "list"
36+
3537class _NNTPBase :
3638 encoding : str
3739 errors : str
@@ -49,31 +51,31 @@ class _NNTPBase:
4951 def __enter__ (self : Self ) -> Self : ...
5052 def __exit__ (self , * args : Any ) -> None : ...
5153 def getwelcome (self ) -> str : ...
52- def getcapabilities (self ) -> Dict [str , List [str ]]: ...
54+ def getcapabilities (self ) -> dict [str , _list [str ]]: ...
5355 def set_debuglevel (self , level : int ) -> None : ...
5456 def debug (self , level : int ) -> None : ...
55- def capabilities (self ) -> Tuple [str , Dict [str , List [str ]]]: ...
56- def newgroups (self , date : datetime .date | datetime .datetime , * , file : _File = ...) -> Tuple [str , List [str ]]: ...
57- def newnews (self , group : str , date : datetime .date | datetime .datetime , * , file : _File = ...) -> Tuple [str , List [str ]]: ...
58- def list (self , group_pattern : str | None = ..., * , file : _File = ...) -> Tuple [str , List [str ]]: ...
57+ def capabilities (self ) -> Tuple [str , dict [str , _list [str ]]]: ...
58+ def newgroups (self , date : datetime .date | datetime .datetime , * , file : _File = ...) -> Tuple [str , _list [str ]]: ...
59+ def newnews (self , group : str , date : datetime .date | datetime .datetime , * , file : _File = ...) -> Tuple [str , _list [str ]]: ...
60+ def list (self , group_pattern : str | None = ..., * , file : _File = ...) -> Tuple [str , _list [str ]]: ...
5961 def description (self , group : str ) -> str : ...
60- def descriptions (self , group_pattern : str ) -> Tuple [str , Dict [str , str ]]: ...
62+ def descriptions (self , group_pattern : str ) -> Tuple [str , dict [str , str ]]: ...
6163 def group (self , name : str ) -> Tuple [str , int , int , int , str ]: ...
62- def help (self , * , file : _File = ...) -> Tuple [str , List [str ]]: ...
64+ def help (self , * , file : _File = ...) -> Tuple [str , _list [str ]]: ...
6365 def stat (self , message_spec : Any = ...) -> Tuple [str , int , str ]: ...
6466 def next (self ) -> Tuple [str , int , str ]: ...
6567 def last (self ) -> Tuple [str , int , str ]: ...
6668 def head (self , message_spec : Any = ..., * , file : _File = ...) -> Tuple [str , ArticleInfo ]: ...
6769 def body (self , message_spec : Any = ..., * , file : _File = ...) -> Tuple [str , ArticleInfo ]: ...
6870 def article (self , message_spec : Any = ..., * , file : _File = ...) -> Tuple [str , ArticleInfo ]: ...
6971 def slave (self ) -> str : ...
70- def xhdr (self , hdr : str , str : Any , * , file : _File = ...) -> Tuple [str , List [str ]]: ...
71- def xover (self , start : int , end : int , * , file : _File = ...) -> Tuple [str , List [Tuple [int , Dict [str , str ]]]]: ...
72+ def xhdr (self , hdr : str , str : Any , * , file : _File = ...) -> Tuple [str , _list [str ]]: ...
73+ def xover (self , start : int , end : int , * , file : _File = ...) -> Tuple [str , _list [Tuple [int , dict [str , str ]]]]: ...
7274 def over (
73- self , message_spec : None | str | List [Any ] | Tuple [Any , ...], * , file : _File = ...
74- ) -> Tuple [str , List [Tuple [int , Dict [str , str ]]]]: ...
75+ self , message_spec : None | str | _list [Any ] | Tuple [Any , ...], * , file : _File = ...
76+ ) -> Tuple [str , _list [Tuple [int , dict [str , str ]]]]: ...
7577 if sys .version_info < (3 , 9 ):
76- def xgtitle (self , group : str , * , file : _File = ...) -> Tuple [str , List [Tuple [str , str ]]]: ...
78+ def xgtitle (self , group : str , * , file : _File = ...) -> Tuple [str , _list [Tuple [str , str ]]]: ...
7779 def xpath (self , id : Any ) -> Tuple [str , str ]: ...
7880 def date (self ) -> Tuple [str , datetime .datetime ]: ...
7981 def post (self , data : bytes | Iterable [bytes ]) -> str : ...
0 commit comments