From 3e5c7c5c53eea3c150f577dc592f85064fc14044 Mon Sep 17 00:00:00 2001 From: Petter Friberg Date: Wed, 17 Apr 2024 16:03:15 +0200 Subject: [PATCH] Add a `returncode` attribute to `CommandError` --- django-stubs/core/management/base.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/django-stubs/core/management/base.pyi b/django-stubs/core/management/base.pyi index 324f9d953..cd19e04a5 100644 --- a/django-stubs/core/management/base.pyi +++ b/django-stubs/core/management/base.pyi @@ -10,6 +10,7 @@ from django.utils.datastructures import _ListOrTuple ALL_CHECKS: Literal["__all__"] class CommandError(Exception): + returncode: int def __init__(self, *args: Any, returncode: int = ..., **kwargs: Any) -> None: ... class SystemCheckError(CommandError): ...