From b03cd49a8756dfd8e087dfb6b886225cc0afc950 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 28 Feb 2021 09:15:38 -0800 Subject: [PATCH] Type optparse.Option.default attribute (#5080) https://github.com/python/cpython/blob/1e3c68246ee738b5ec5450b1eb39af2fca300cb9/Lib/optparse.py#L458 --- stdlib/optparse.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/optparse.pyi b/stdlib/optparse.pyi index 3d06ac65e..78d45d084 100644 --- a/stdlib/optparse.pyi +++ b/stdlib/optparse.pyi @@ -96,6 +96,7 @@ class Option: _short_opts: List[_Text] action: _Text dest: Optional[_Text] + default: Any nargs: int type: Any callback: Optional[Callable[..., Any]]