Skip to content

Commit 41b8981

Browse files
unittest.mock.__version__ was removed in 3.9 (#10056)
See the first entry in https://docs.python.org/3/whatsnew/3.9.html#removed
1 parent fd188fa commit 41b8981

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/unittest/mock.pyi

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ else:
4747
"seal",
4848
)
4949

50-
__version__: Final[str]
50+
if sys.version_info < (3, 9):
51+
__version__: Final[str]
5152

5253
FILTER_DIR: Any
5354

0 commit comments

Comments
 (0)