bpo-20684: Remove unused inspect._signature_get_bound_param (GH-21100) · python/cpython@9e746e3 · GitHub
Skip to content

Commit 9e746e3

Browse files
authored
bpo-20684: Remove unused inspect._signature_get_bound_param (GH-21100)
1 parent e9f66ae commit 9e746e3

3 files changed

Lines changed: 2 additions & 30 deletions

File tree

Lib/inspect.py

Lines changed: 0 additions & 23 deletions

Lib/test/test_inspect.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4014,13 +4014,6 @@ def foo(a): pass
40144014
self.assertIs(type(ba.arguments), dict)
40154015

40164016
class TestSignaturePrivateHelpers(unittest.TestCase):
4017-
def test_signature_get_bound_param(self):
4018-
getter = inspect._signature_get_bound_param
4019-
4020-
self.assertEqual(getter('($self)'), 'self')
4021-
self.assertEqual(getter('($self, obj)'), 'self')
4022-
self.assertEqual(getter('($cls, /, obj)'), 'cls')
4023-
40244017
def _strip_non_python_syntax(self, input,
40254018
clean_signature, self_parameter, last_positional_only):
40264019
computed_clean_signature, \
Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)