Mypy stub fixes for strict optional mode (#366)

This commit is contained in:
Jukka Lehtosalo authored and Guido van Rossum committed 2016-07-13 09:38:40 -07:00
1 parent bca4c81b70
commit e05edb60f1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -104,7 +104,7 @@ class SocketHandler(Handler):
if sys.version_info >= (3, 4):
def __init__(self, host: str, port: Optional[int]) -> None: ...
else:
def __init__(self, host: str, port: int) -> None: ...
def __init__(self, host: str, port: int) -> None: ... # type: ignore
def makeSocket(self) -> SocketType: ...
def makePickle(self, record: LogRecord) -> bytes: ...
def send(self, packet: bytes) -> None: ...