20 ast.AsyncFunctionDef # __IGNORE_EXCEPTION__ |
20 ast.AsyncFunctionDef # __IGNORE_EXCEPTION__ |
21 except AttributeError: |
21 except AttributeError: |
22 ast.AsyncFunctionDef = ast.FunctionDef |
22 ast.AsyncFunctionDef = ast.FunctionDef |
23 |
23 |
24 |
24 |
25 class DocStyleContext(object): |
25 class DocStyleContext: |
26 """ |
26 """ |
27 Class implementing the source context. |
27 Class implementing the source context. |
28 """ |
28 """ |
29 def __init__(self, source, startLine, contextType): |
29 def __init__(self, source, startLine, contextType): |
30 """ |
30 """ |
114 @rtype str |
114 @rtype str |
115 """ |
115 """ |
116 return self.__special |
116 return self.__special |
117 |
117 |
118 |
118 |
119 class DocStyleChecker(object): |
119 class DocStyleChecker: |
120 """ |
120 """ |
121 Class implementing a checker for documentation string conventions. |
121 Class implementing a checker for documentation string conventions. |
122 """ |
122 """ |
123 Codes = [ |
123 Codes = [ |
124 "D101", "D102", "D103", "D104", "D105", |
124 "D101", "D102", "D103", "D104", "D105", |