From aecd1d8e69b909377e42aeca8ba91be8d064d7f8 Mon Sep 17 00:00:00 2001 From: CPython Developers <> Date: Mon, 15 Aug 2022 03:22:54 +0900 Subject: [PATCH] Update test_module from CPython 3.10.6 --- Lib/test/ann_module.py | 2 ++ Lib/test/ann_module4.py | 5 +++++ Lib/test/ann_module7.py | 11 +++++++++++ 3 files changed, 18 insertions(+) create mode 100644 Lib/test/ann_module4.py create mode 100644 Lib/test/ann_module7.py diff --git a/Lib/test/ann_module.py b/Lib/test/ann_module.py index 0567d6de1..5081e6b58 100644 --- a/Lib/test/ann_module.py +++ b/Lib/test/ann_module.py @@ -58,3 +58,5 @@ def dec(func): def wrapper(*args, **kwargs): return func(*args, **kwargs) return wrapper + +u: int | float diff --git a/Lib/test/ann_module4.py b/Lib/test/ann_module4.py new file mode 100644 index 000000000..13e9aee54 --- /dev/null +++ b/Lib/test/ann_module4.py @@ -0,0 +1,5 @@ +# This ann_module isn't for test_typing, +# it's for test_module + +a:int=3 +b:str=4 diff --git a/Lib/test/ann_module7.py b/Lib/test/ann_module7.py new file mode 100644 index 000000000..8f890cd28 --- /dev/null +++ b/Lib/test/ann_module7.py @@ -0,0 +1,11 @@ +# Tests class have ``__text_signature__`` + +from __future__ import annotations + +DEFAULT_BUFFER_SIZE = 8192 + +class BufferedReader(object): + """BufferedReader(raw, buffer_size=DEFAULT_BUFFER_SIZE)\n--\n\n + Create a new buffered reader using the given readable raw IO object. + """ + pass