From 41b8981368baa9780c5e095e01b25e9b3c097574 Mon Sep 17 00:00:00 2001 From: Lucina Date: Mon, 17 Apr 2023 18:51:34 +0100 Subject: [PATCH] unittest.mock.__version__ was removed in 3.9 (#10056) See the first entry in https://docs.python.org/3/whatsnew/3.9.html#removed --- stdlib/unittest/mock.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/unittest/mock.pyi b/stdlib/unittest/mock.pyi index a054d3c4c..1f554da52 100644 --- a/stdlib/unittest/mock.pyi +++ b/stdlib/unittest/mock.pyi @@ -47,7 +47,8 @@ else: "seal", ) -__version__: Final[str] +if sys.version_info < (3, 9): + __version__: Final[str] FILTER_DIR: Any