Changed the 'Create Dialog Code Dialog' to adhere to the formatting rules of the 'Black' tool. eric7

Wed, 19 Oct 2022 17:47:50 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 19 Oct 2022 17:47:50 +0200
branch
eric7
changeset 9423
f30b9e9819cc
parent 9422
cf2ea9c6316a
child 9424
47fcd27ea82e

Changed the 'Create Dialog Code Dialog' to adhere to the formatting rules of the 'Black' tool.

src/eric7/CodeTemplates/impl_pyqt5.py.tmpl file | annotate | diff | comparison | revisions
src/eric7/CodeTemplates/impl_pyqt6.py.tmpl file | annotate | diff | comparison | revisions
src/eric7/CodeTemplates/impl_pyside2.py.tmpl file | annotate | diff | comparison | revisions
src/eric7/CodeTemplates/impl_pyside6.py.tmpl file | annotate | diff | comparison | revisions
src/eric7/Project/CreateDialogCodeDialog.py file | annotate | diff | comparison | revisions
--- a/src/eric7/CodeTemplates/impl_pyqt5.py.tmpl	Wed Oct 19 17:00:05 2022 +0200
+++ b/src/eric7/CodeTemplates/impl_pyqt5.py.tmpl	Wed Oct 19 17:47:50 2022 +0200
@@ -14,10 +14,11 @@
     """
     Class documentation goes here.
     """
+
     def __init__(self, parent=None):
         """
         Constructor
-        
+
         @param parent reference to the parent widget (defaults to None)
         @type QWidget (optional)
         """
--- a/src/eric7/CodeTemplates/impl_pyqt6.py.tmpl	Wed Oct 19 17:00:05 2022 +0200
+++ b/src/eric7/CodeTemplates/impl_pyqt6.py.tmpl	Wed Oct 19 17:47:50 2022 +0200
@@ -14,10 +14,11 @@
     """
     Class documentation goes here.
     """
+
     def __init__(self, parent=None):
         """
         Constructor
-        
+
         @param parent reference to the parent widget (defaults to None)
         @type QWidget (optional)
         """
--- a/src/eric7/CodeTemplates/impl_pyside2.py.tmpl	Wed Oct 19 17:00:05 2022 +0200
+++ b/src/eric7/CodeTemplates/impl_pyside2.py.tmpl	Wed Oct 19 17:47:50 2022 +0200
@@ -14,10 +14,11 @@
     """
     Class documentation goes here.
     """
+
     def __init__(self, parent=None):
         """
         Constructor
-        
+
         @param parent reference to the parent widget (defaults to None)
         @type QWidget (optional)
         """
--- a/src/eric7/CodeTemplates/impl_pyside6.py.tmpl	Wed Oct 19 17:00:05 2022 +0200
+++ b/src/eric7/CodeTemplates/impl_pyside6.py.tmpl	Wed Oct 19 17:47:50 2022 +0200
@@ -14,10 +14,11 @@
     """
     Class documentation goes here.
     """
+
     def __init__(self, parent=None):
         """
         Constructor
-        
+
         @param parent reference to the parent widget (defaults to None)
         @type QWidget (optional)
         """
--- a/src/eric7/Project/CreateDialogCodeDialog.py	Wed Oct 19 17:00:05 2022 +0200
+++ b/src/eric7/Project/CreateDialogCodeDialog.py	Wed Oct 19 17:47:50 2022 +0200
@@ -525,7 +525,7 @@
                     child.flags() & Qt.ItemFlag.ItemIsUserCheckable
                     == Qt.ItemFlag.ItemIsUserCheckable
                 ):
-                    slotsCode.append("{0}\n".format(indentStr))
+                    slotsCode.append("\n")
                     slotsCode.append(
                         "{0}{1}\n".format(
                             indentStr,
@@ -543,7 +543,7 @@
                         "{0}Slot documentation goes here.\n".format(indentStr2)
                     )
                     if child.data(returnTypeRole) or child.data(parameterTypesListRole):
-                        slotsCode.append("{0}\n".format(indentStr2))
+                        slotsCode.append("\n")
                         if child.data(parameterTypesListRole):
                             for name, type_ in zip(
                                 child.data(parameterNamesListRole),

eric ide

mercurial