Class 'Ui_Dialog' inherits from object, can be safely removed from bases in python3
16from PySide2.QtWidgets import *
17
18
19class Ui_Dialog(object): 20 def setupUi(self, Dialoge):
21 if not Dialoge.objectName():
22 Dialoge.setObjectName(u"Dialoge")
Description
The class is inheriting from object
, which is implicit under Python 3 , hence can be safely removed from bases.
Not preferred:
class Foo(object):
"""Foo bar baz"""
Preferred:
class Foo:
"""Foo bar baz"""