Skip to content

Commit e11955f

Browse files
authored
Add a returncode attribute to CommandError (#2072)
1 parent 1bb61d5 commit e11955f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django-stubs/core/management/base.pyi

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ from django.utils.datastructures import _ListOrTuple
1010
ALL_CHECKS: Literal["__all__"]
1111

1212
class CommandError(Exception):
13+
returncode: int
1314
def __init__(self, *args: Any, returncode: int = ..., **kwargs: Any) -> None: ...
1415

1516
class SystemCheckError(CommandError): ...

0 commit comments

Comments
 (0)