summaryrefslogtreecommitdiff
path: root/pylint/test/functional/old_style_class_py27.py
blob: 1149325418647b1a3ad4d664c6d0c76b3a22461b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
""" Tests for old style classes. """
# pylint: disable=no-init, too-few-public-methods, invalid-name, metaclass-assignment

class Old: # [old-style-class]
    """ old style class """

class Child(Old):
    """ Old style class, but don't emit for it. """

class NotOldStyle2:
    """ Because I have a metaclass at class level. """
    __metaclass__ = type

# pylint: disable=redefined-builtin
__metaclass__ = type

class NotOldStyle:
    """ Because I have a metaclass at global level. """