pylint-bot / test

0 stars 0 forks source link

Function metaclasses #171

Open pylint-bot opened 8 years ago

pylint-bot commented 8 years ago

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)


Support the following:

#!python

from astroid.test_utils import extract_node
n = extract_node('''
def func(cls, bases, attrs):
    return ...

class A(func): #@
   pass
''')
print(n.metaclass()) # Should print the class that func returns

Working on a patch already.