Open
Description
class CSSClasses:
class Padding:
padding = "1em"
class SeparateContent(Padding):
padding = "2em"
margin = "2em"
# This causes an error
class RandomClass(SeparateContent, Padding):
# class content
pass
TypeError: Cannot create a consistent method resolution
order (MRO) for bases object, Padding, SeparateContent
Preferably this should instead warn the user that the class inherits the same class twice, or find a way to join the
class attributes together systematically.
Metadata
Metadata
Assignees
Labels
No labels