All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.python.types.typeshed.stdlib.2and3.logging.config.pyi Maven / Gradle / Ivy

There is a newer version: 4.17.0.14845
Show newest version
# 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
else:
    from ConfigParser import RawConfigParser
if sys.version_info >= (3, 6):
    from os import PathLike

if sys.version_info >= (3, 7):
    _Path = Union[str, bytes, PathLike[str]]
elif sys.version_info >= (3, 6):
    _Path = Union[str, PathLike[str]]
else:
    _Path = str


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: ...




© 2015 - 2024 Weber Informatics LLC | Privacy Policy