From 9ba4a55c935f7dc8e6518209fc73c5731ca1ae8b Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 26 Aug 2022 10:44:18 +0100 Subject: [PATCH] Improve types for CheckMessage subclasses (#1107) --- django-stubs/core/checks/messages.pyi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/django-stubs/core/checks/messages.pyi b/django-stubs/core/checks/messages.pyi index f7aec38..e0b7d0a 100644 --- a/django-stubs/core/checks/messages.pyi +++ b/django-stubs/core/checks/messages.pyi @@ -19,16 +19,16 @@ class CheckMessage: def is_silenced(self) -> bool: ... class Debug(CheckMessage): - def __init__(self, *args: Any, **kwargs: Any) -> None: ... + def __init__(self, msg: str, hint: Optional[str] = ..., obj: Any = ..., id: Optional[str] = ...) -> None: ... class Info(CheckMessage): - def __init__(self, *args: Any, **kwargs: Any) -> None: ... + def __init__(self, msg: str, hint: Optional[str] = ..., obj: Any = ..., id: Optional[str] = ...) -> None: ... class Warning(CheckMessage): - def __init__(self, *args: Any, **kwargs: Any) -> None: ... + def __init__(self, msg: str, hint: Optional[str] = ..., obj: Any = ..., id: Optional[str] = ...) -> None: ... class Error(CheckMessage): - def __init__(self, *args: Any, **kwargs: Any) -> None: ... + def __init__(self, msg: str, hint: Optional[str] = ..., obj: Any = ..., id: Optional[str] = ...) -> None: ... class Critical(CheckMessage): - def __init__(self, *args: Any, **kwargs: Any) -> None: ... + def __init__(self, msg: str, hint: Optional[str] = ..., obj: Any = ..., id: Optional[str] = ...) -> None: ...