From d6237d09c7f7a02432a53515b9c34ba5e22ead73 Mon Sep 17 00:00:00 2001 From: zhykzhykzhyk Date: Tue, 27 Dec 2022 12:43:35 +0800 Subject: [PATCH] Add constructor to CellType (#9399) --- stdlib/types.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/types.pyi b/stdlib/types.pyi index a40b6280f..6928032f9 100644 --- a/stdlib/types.pyi +++ b/stdlib/types.pyi @@ -68,6 +68,9 @@ _V_co = TypeVar("_V_co", covariant=True) @final class _Cell: + if sys.version_info >= (3, 8): + def __init__(self, __contents: object = ...) -> None: ... + __hash__: ClassVar[None] # type: ignore[assignment] cell_contents: Any