diff options
author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-12-13 15:50:27 +0100 |
---|---|---|
committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-12-18 10:08:10 +0100 |
commit | 382a34586f73896d12063616eb8b31474c03f68a (patch) | |
tree | c33f9c01713fe2083351beade9d9536527712814 /examples/widgets/tutorials/addressbook/part5.py | |
parent | 03a3e61b0cce28c44b68b032cff2e6b8fa869477 (diff) |
Remove unnecessary use of 'object' in class constructionremoteobjectsdev
Considering we are not compatible with Python 2 anymore,
we can drop the 'object' explicit inheritance in the class
declaration.
Pick-to: 6.8
Change-Id: Iac3a95aa9721c3ff1a755f457c0936ca157a8470
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/tutorials/addressbook/part5.py')
-rw-r--r-- | examples/widgets/tutorials/addressbook/part5.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/tutorials/addressbook/part5.py b/examples/widgets/tutorials/addressbook/part5.py index 364a56a3f..062a81215 100644 --- a/examples/widgets/tutorials/addressbook/part5.py +++ b/examples/widgets/tutorials/addressbook/part5.py @@ -13,7 +13,7 @@ from PySide6.QtWidgets import (QApplication, QDialog, QGridLayout, class SortedDict(dict): - class Iterator(object): + class Iterator: def __init__(self, sorted_dict): self._dict = sorted_dict self._keys = sorted(self._dict.keys()) |