@@ -107,7 +107,7 @@ class Visitor(flake8_helper.Visitor):
107
107
The functionality for checking classes has moved to the :class:`~.ClassVisitor` subclass.
108
108
"""
109
109
110
- def check_open_encoding (self , node : ast .Call ):
110
+ def check_open_encoding (self , node : ast .Call ) -> None :
111
111
"""
112
112
Check the call represented by the given AST node is using encodings correctly.
113
113
@@ -141,7 +141,7 @@ def check_open_encoding(self, node: ast.Call):
141
141
142
142
check_encoding = check_open_encoding # deprecated
143
143
144
- def visit_Call (self , node : ast .Call ): # noqa: D102
144
+ def visit_Call (self , node : ast .Call ) -> None : # noqa: D102
145
145
146
146
if isinstance (node .func , ast .Name ):
147
147
@@ -195,7 +195,7 @@ def __init__(self):
195
195
self .filename = PathPlus ("<unknown>" )
196
196
self .jedi_script = jedi .Script ('' )
197
197
198
- def first_visit (self , node : ast .AST , filename : PathPlus ):
198
+ def first_visit (self , node : ast .AST , filename : PathPlus ) -> None :
199
199
"""
200
200
Like :meth:`ast.NodeVisitor.visit`, but configures type inference.
201
201
@@ -212,7 +212,7 @@ def first_visit(self, node: ast.AST, filename: PathPlus):
212
212
self .jedi_script = jedi .Script (self .filename .read_text (), path = self .filename )
213
213
self .visit (node )
214
214
215
- def check_configparser_encoding (self , node : ast .Call ):
215
+ def check_configparser_encoding (self , node : ast .Call ) -> None :
216
216
"""
217
217
Check the call represented by the given AST node is using encodings correctly.
218
218
@@ -230,7 +230,7 @@ def check_configparser_encoding(self, node: ast.Call):
230
230
if kwargs ["encoding" ].value is None :
231
231
self .report_error (node , ENC012 )
232
232
233
- def check_pathlib_encoding (self , node : ast .Call , method_name : str ):
233
+ def check_pathlib_encoding (self , node : ast .Call , method_name : str ) -> None :
234
234
"""
235
235
Check the call represented by the given AST node is using encodings correctly.
236
236
@@ -279,7 +279,7 @@ def check_pathlib_encoding(self, node: ast.Call, method_name: str):
279
279
if kwargs ["encoding" ].value is None :
280
280
self .report_error (node , encoding_none )
281
281
282
- def visit_Call (self , node : ast .Call ): # noqa: D102
282
+ def visit_Call (self , node : ast .Call ) -> None : # noqa: D102
283
283
284
284
if isinstance (node .func , ast .Name ):
285
285
0 commit comments