tptimer/env/lib/python2.7/site-packages/pylint/test/functional/duplicate_bases.py

16 lines
352 B
Python
Raw Normal View History

2018-07-20 05:43:02 +00:00
"""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."""