Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)
Given the following code, A.test will be inferred as an UnboundMethod, which is wrong, because there's no unbound method on Python 3. We should probably return a function instead.
#!python
from astroid.test_utils import extract_node
n = extract_node('''
class A:
def test(self): pass
A.test #@
''')
inferred = next(n.infer())
print(inferred)
Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)
Given the following code, A.test will be inferred as an UnboundMethod, which is wrong, because there's no unbound method on Python 3. We should probably return a function instead.