mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
Re-organize directory structure (#4971)
See discussion in #2491 Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
32
stdlib/logging/config.pyi
Normal file
32
stdlib/logging/config.pyi
Normal file
@@ -0,0 +1,32 @@
|
||||
import sys
|
||||
from _typeshed import AnyPath, StrPath
|
||||
from threading import Thread
|
||||
from typing import IO, Any, Callable, Dict, Optional, Union
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
from configparser import RawConfigParser
|
||||
else:
|
||||
from ConfigParser import RawConfigParser
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
_Path = AnyPath
|
||||
else:
|
||||
_Path = StrPath
|
||||
|
||||
def dictConfig(config: Dict[str, Any]) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
def fileConfig(
|
||||
fname: Union[_Path, IO[str], RawConfigParser],
|
||||
defaults: Optional[Dict[str, str]] = ...,
|
||||
disable_existing_loggers: bool = ...,
|
||||
) -> None: ...
|
||||
def listen(port: int = ..., 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 = ...) -> Thread: ...
|
||||
|
||||
def stopListening() -> None: ...
|
||||
Reference in New Issue
Block a user