From fb1593630ae5ebaedbc3a82661a51a393adb228c Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Mon, 16 Dec 2019 19:16:21 +0200 Subject: [PATCH] Expand stubs for django.core.management.color (#276) Many attributes were previously missing; 'DEBUG' and 'INFO' attributes were never supported by Django. --- django-stubs/core/management/color.pyi | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/django-stubs/core/management/color.pyi b/django-stubs/core/management/color.pyi index 0d71350..0fc0d6a 100644 --- a/django-stubs/core/management/color.pyi +++ b/django-stubs/core/management/color.pyi @@ -1,11 +1,24 @@ def supports_color() -> bool: ... class Style: - def DEBUG(self, text: str) -> str: ... - def INFO(self, text: str) -> str: ... + def ERROR(self, text: str) -> str: ... def SUCCESS(self, text: str) -> str: ... def WARNING(self, text: str) -> str: ... - def ERROR(self, text: str) -> str: ... + def NOTICE(self, text: str) -> str: ... + def SQL_FIELD(self, text: str) -> str: ... + def SQL_COLTYPE(self, text: str) -> str: ... + def SQL_KEYWORD(self, text: str) -> str: ... + def SQL_TABLE(self, text: str) -> str: ... + def HTTP_INFO(self, text: str) -> str: ... + def HTTP_SUCCESS(self, text: str) -> str: ... + def HTTP_REDIRECT(self, text: str) -> str: ... + def HTTP_NOT_MODIFIED(self, text: str) -> str: ... + def HTTP_BAD_REQUEST(self, text: str) -> str: ... + def HTTP_NOT_FOUND(self, text: str) -> str: ... + def HTTP_SERVER_ERROR(self, text: str) -> str: ... + def MIGRATE_HEADING(self, text: str) -> str: ... + def MIGRATE_LABEL(self, text: str) -> str: ... + def ERROR_OUTPUT(self, text: str) -> str: ... def make_style(config_string: str = ...) -> Style: ... def no_style() -> Style: ...