Format: application/octet-stream
1 import sys
2 from _typeshed import AnyPath, StrPath
3 from threading import Thread
4 from typing import IO, Any, Callable, Dict, Optional, Union
5
6 if sys.version_info >= (3,):
7 from configparser import RawConfigParser
8 else:
9 from ConfigParser import RawConfigParser
10
11 if sys.version_info >= (3, 7):
12 _Path = AnyPath
13 else:
14 _Path = StrPath
15
16 def dictConfig(config: Dict[str, Any]) -> None: ...
17
18 if sys.version_info >= (3, 4):
19 def fileConfig(
20 fname: Union[_Path, IO[str], RawConfigParser],
21 defaults: Optional[Dict[str, str]] = ...,
22 disable_existing_loggers: bool = ...,
23 ) -> None: ...
24 def listen(port: int = ..., verify: Optional[Callable[[bytes], Optional[bytes]]] = ...) -> Thread: ...
25
26 else:
27 def fileConfig(
28 fname: Union[str, IO[str]], defaults: Optional[Dict[str, str]] = ..., disable_existing_loggers: bool = ...
29 ) -> None: ...
30 def listen(port: int = ...) -> Thread: ...
31
32 def stopListening() -> None: ...
33