@@ -66,7 +66,7 @@ def __init__(self) -> None:
6666
6767 if sys .version_info < (3 , 8 ): # pragma: no cover (PY38+)
6868
69- def visit_Str (self , node : ast .Str ):
69+ def visit_Str (self , node : ast .Str ) -> None :
7070 """
7171 Visit an AST Str node.
7272
@@ -78,7 +78,7 @@ def visit_Str(self, node: ast.Str):
7878
7979 else : # pragma: no cover (<PY38)
8080
81- def visit_Constant (self , node : ast .Constant ):
81+ def visit_Constant (self , node : ast .Constant ) -> None :
8282 """
8383 Visit an AST Constant node.
8484
@@ -91,7 +91,7 @@ def visit_Constant(self, node: ast.Constant):
9191 self ._check_linux (node )
9292 self ._check_windows (node )
9393
94- def _check_linux (self , node : Union [ast .Str , ast .Constant ]):
94+ def _check_linux (self , node : Union [ast .Str , ast .Constant ]) -> None :
9595 """
9696 Perform the check for Linux-specific codes.
9797
@@ -105,7 +105,7 @@ def _check_linux(self, node: Union[ast.Str, ast.Constant]):
105105 STRFTIME001 ,
106106 ))
107107
108- def _check_windows (self , node : Union [ast .Str , ast .Constant ]):
108+ def _check_windows (self , node : Union [ast .Str , ast .Constant ]) -> None :
109109 """
110110 Perform the check for Windows-specific codes.
111111
0 commit comments