Fix PartialMethodObject (WIP)

Implemented feedback from PR #1522.
Does not pass new tests in test/completion/stdlib.py
This commit is contained in:
Daniel Lemm
2020-03-13 21:40:58 +01:00
parent 96c969687a
commit fd6540a9e5
3 changed files with 28 additions and 10 deletions

View File

@@ -100,6 +100,8 @@ class X:
(partialmethod_code + 'X().b(', 'func(b, c)'),
(partialmethod_code + 'X().c(', 'func(b)'),
(partialmethod_code + 'X().d(', None),
(partialmethod_code + 'X.c(', 'func(b)'),
(partialmethod_code + 'X.d(', None),
]
)
def test_tree_signature(Script, environment, code, expected):