1632 strippedLine = line.lstrip() |
1632 strippedLine = line.lstrip() |
1633 if strippedLine.startswith("@"): |
1633 if strippedLine.startswith("@"): |
1634 docToken = strippedLine.split(None, 1)[0] |
1634 docToken = strippedLine.split(None, 1)[0] |
1635 docTokens.append((docToken, lineno)) |
1635 docTokens.append((docToken, lineno)) |
1636 |
1636 |
1637 # check, that a type tag is not preceeced by an empty line |
1637 # check, that a type tag is not preceded by an empty line |
1638 if ( |
1638 if ( |
1639 docToken in ("@tyoe", "@rtype", "@ytype") |
1639 docToken in ("@type", "@rtype", "@ytype") |
1640 and lineno > 0 |
1640 and lineno > 0 |
1641 and lines[lineno - 1].strip() == "" |
1641 and lines[lineno - 1].strip() == "" |
1642 ): |
1642 ): |
1643 self.__error( |
1643 self.__error( |
1644 docstringContext.start() + lineno, 0, "D271", docToken |
1644 docstringContext.start() + lineno, 0, "D271", docToken |