Add missing Optional to str.split and socket.socket. (#504)

* Add Optional to str.split and friends

* Python 3: Make fileno arg of socket.socket Optional
Python 2: Remove fileno arg of socket.socket
This commit is contained in:
David Euresti
2016-08-27 19:09:55 -07:00
committed by Guido van Rossum
parent 828f42e350
commit 5e5b3726f2
3 changed files with 9 additions and 9 deletions

View File

@@ -278,7 +278,7 @@ class socket:
proto = 0
def __init__(self, family: int = ..., type: int = ...,
proto: int = ..., fileno: int = ...) -> None: ...
proto: int = ...) -> None: ...
# --- methods ---
# second tuple item is an address