config.pyi: Return a Thread instance (#2945)

Fixes #2938
This commit is contained in:
Utkarsh Gupta
2019-05-02 10:22:51 +00:00
committed by Jelle Zijlstra
parent 556f354e1e
commit df953ca385

View File

@@ -1,6 +1,7 @@
# Stubs for logging.config (Python 3.4)
from typing import Any, Callable, Dict, Optional, IO, Union
from threading import Thread
import sys
if sys.version_info >= (3,):
from configparser import RawConfigParser
@@ -23,10 +24,10 @@ if sys.version_info >= (3, 4):
defaults: Optional[Dict[str, str]] = ...,
disable_existing_loggers: bool = ...) -> None: ...
def listen(port: int = ...,
verify: Optional[Callable[[bytes], Optional[bytes]]] = ...) -> None: ...
verify: Optional[Callable[[bytes], Optional[bytes]]] = ...) -> Thread: ...
else:
def fileConfig(fname: Union[str, IO[str]],
defaults: Optional[Dict[str, str]] = ...,
disable_existing_loggers: bool = ...) -> None: ...
def listen(port: int = ...) -> None: ...
def listen(port: int = ...) -> Thread: ...
def stopListening() -> None: ...