src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/MiscellaneousChecker.py

branch
eric7
changeset 10371
1f54843e8152
parent 10362
cfa7034cccf6
child 10417
c6011e501282
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/MiscellaneousChecker.py	Sat Dec 02 12:19:16 2023 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/MiscellaneousChecker.py	Sun Dec 03 16:32:00 2023 +0100
@@ -999,9 +999,9 @@
                     and not any(k.arg is None for k in node.keywords)
                     and node.func.id == "dict"
                 ) or (
-                    numKeywordArgs == 0 and numKeywordArgs == 0 and node.func.id in (
-                        "tuple", "list"
-                    )
+                    numPositionalArgs == 0
+                    and numKeywordArgs == 0
+                    and node.func.id in ("tuple", "list")
                 ):
                     self.__error(node.lineno - 1, node.col_offset, "M188", node.func.id)
 
@@ -1428,6 +1428,7 @@
     #######################################################################
 
     if sys.version_info < (3, 12):
+
         def __isImplicitStringConcat(self, first, second):
             """
             Private method to check, if the given strings indicate an implicit string

eric ide

mercurial