diff -r 4bef44d7a378 -r 2074b8393649 src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py --- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py Sun Dec 31 17:44:59 2023 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py Sun Dec 31 18:01:05 2023 +0100 @@ -317,7 +317,7 @@ (self.__checkEricException, ("D250", "D251", "D252", "D253")), (self.__checkEricDocumentationSequence, ("D270", "D271")), (self.__checkEricDocumentationDeprecatedTags, ("D272",)), - (self.__checkEricDocumentationIndent, ("D273",)) + (self.__checkEricDocumentationIndent, ("D273",)), ], "docstring": [ (self.__checkTripleDoubleQuotes, ("D111",)), @@ -1635,16 +1635,14 @@ if strippedLine.startswith("@"): docToken = strippedLine.split(None, 1)[0] docTokens.append((docToken, lineno)) - + # check, that a type tag is not preceded by an empty line if ( docToken in ("@type", "@rtype", "@ytype") and lineno > 0 and lines[lineno - 1].strip() == "" ): - self.__error( - docstringContext.start() + lineno, 0, "D271", docToken - ) + self.__error(docstringContext.start() + lineno, 0, "D271", docToken) # check the correct sequence of @param/@return/@yield and their accompanying # type tag