File tree Expand file tree Collapse file tree
pyrogram/connection/transport/tcp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818
1919import logging
20- from typing import Optional
20+ from typing import Optional , Tuple
2121
22- from .tcp import TCP
22+ from .tcp import TCP , Proxy
2323
2424log = logging .getLogger (__name__ )
2525
2626
2727class TCPAbridged (TCP ):
28- def __init__ (self , ipv6 : bool , proxy : dict ) :
28+ def __init__ (self , ipv6 : bool , proxy : Proxy ) -> None :
2929 super ().__init__ (ipv6 , proxy )
3030
31- async def connect (self , address : tuple ) :
31+ async def connect (self , address : Tuple [ str , int ]) -> None :
3232 await super ().connect (address )
3333 await super ().send (b"\xef " )
3434
35- async def send (self , data : bytes , * args ):
35+ async def send (self , data : bytes , * args ) -> None :
3636 length = len (data ) // 4
3737
3838 await super ().send (
You can’t perform that action at this time.
0 commit comments