diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-09-22 06:05:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 06:05:07 (GMT) |
commit | 6b731c48786bd30e9f8b86302dfb95a2640979a1 (patch) | |
tree | 8d6c193bcfc99b1e8f1bd4149b0c7c58a7a467c8 /Lib/idlelib/idle_test | |
parent | 4ee30c42441c3e5066d5080a22da53675aeae716 (diff) | |
download | cpython-6b731c48786bd30e9f8b86302dfb95a2640979a1.zip cpython-6b731c48786bd30e9f8b86302dfb95a2640979a1.tar.gz cpython-6b731c48786bd30e9f8b86302dfb95a2640979a1.tar.bz2 |
bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)
The marker was added to the language in 3.8 and
3.7 only gets security patches.
(cherry picked from commit 40a0625792e795cd41c4ba20475e3b770b53817a)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r-- | Lib/idlelib/idle_test/test_calltip.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/idlelib/idle_test/test_calltip.py b/Lib/idlelib/idle_test/test_calltip.py index d386b5c..4d53df1 100644 --- a/Lib/idlelib/idle_test/test_calltip.py +++ b/Lib/idlelib/idle_test/test_calltip.py @@ -61,18 +61,16 @@ class Get_argspecTest(unittest.TestCase): if List.__doc__ is not None: tiptest(List, - f'(iterable=(), /){calltip._argument_positional}' + f'(iterable=(), /)' f'\n{List.__doc__}') tiptest(list.__new__, '(*args, **kwargs)\n' 'Create and return a new object. ' 'See help(type) for accurate signature.') tiptest(list.__init__, - '(self, /, *args, **kwargs)' - + calltip._argument_positional + '\n' + + '(self, /, *args, **kwargs)\n' 'Initialize self. See help(type(self)) for accurate signature.') - append_doc = (calltip._argument_positional - + "\nAppend object to the end of the list.") + append_doc = "\nAppend object to the end of the list." tiptest(list.append, '(self, object, /)' + append_doc) tiptest(List.append, '(self, object, /)' + append_doc) tiptest([].append, '(object, /)' + append_doc) |