Fix distutils.log function signatures (#4573)

This commit is contained in:
Jake Bailey
2020-09-24 17:27:50 -07:00
committed by GitHub
parent 0cd7dd7009
commit de70d0199d

View File

@@ -1,4 +1,4 @@
from typing import Any, Callable, Iterable, Text
from typing import Any, Text
DEBUG: int
INFO: int
@@ -15,14 +15,11 @@ class Log:
def error(self, msg: Text, *args: Any) -> None: ...
def fatal(self, msg: Text, *args: Any) -> None: ...
_LogFunc = Callable[[Text, Iterable[Any]], None]
log: Callable[[int, Text, Iterable[Any]], None]
debug: _LogFunc
info: _LogFunc
warn: _LogFunc
error: _LogFunc
fatal: _LogFunc
def log(level: int, msg: Text, *args: Any) -> None: ...
def debug(msg: Text, *args: Any) -> None: ...
def info(msg: Text, *args: Any) -> None: ...
def warn(msg: Text, *args: Any) -> None: ...
def error(msg: Text, *args: Any) -> None: ...
def fatal(msg: Text, *args: Any) -> None: ...
def set_threshold(level: int) -> int: ...
def set_verbosity(v: int) -> None: ...