mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix missing argument types in py3 stdlib (#995)
Still missing a few in _subprocess (a Windows-only private module) and decimal (I gave up).
This commit is contained in:
committed by
Guido van Rossum
parent
01b3915b3f
commit
11350ed8cc
@@ -7,6 +7,7 @@ from typing import (
|
||||
)
|
||||
import email.message
|
||||
import io
|
||||
from socket import socket
|
||||
import sys
|
||||
import ssl
|
||||
import types
|
||||
@@ -87,7 +88,7 @@ if sys.version_info >= (3, 5):
|
||||
closed = ... # type: bool
|
||||
status = ... # type: int
|
||||
reason = ... # type: str
|
||||
def __init__(self, sock, debuglevel: int = ...,
|
||||
def __init__(self, sock: socket, debuglevel: int = ...,
|
||||
method: Optional[str] = ..., url: Optional[str] = ...) -> None: ...
|
||||
def read(self, amt: Optional[int] = ...) -> bytes: ...
|
||||
def readinto(self, b: bytearray) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user