aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/d/duplicate_bases.py
blob: 51b329a4fbf87ba9e6c11b4b994b0a483b1f0259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Test duplicate bases error."""
# pylint: disable=missing-docstring,too-few-public-methods,no-init


class Duplicates(str, str):  # [duplicate-bases]
    pass


class Alpha(str):
    pass


class NotDuplicates(Alpha, str):
    """The error should not be emitted for this case, since the
    other same base comes from the ancestors."""


print(Duplicates.__mro__)