mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Fix distutils.log function signatures (#4573)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user