@@ -66,7 +66,7 @@ def __init__(self) -> None:
66
66
67
67
if sys .version_info < (3 , 8 ): # pragma: no cover (PY38+)
68
68
69
- def visit_Str (self , node : ast .Str ):
69
+ def visit_Str (self , node : ast .Str ) -> None :
70
70
"""
71
71
Visit an AST Str node.
72
72
@@ -78,7 +78,7 @@ def visit_Str(self, node: ast.Str):
78
78
79
79
else : # pragma: no cover (<PY38)
80
80
81
- def visit_Constant (self , node : ast .Constant ):
81
+ def visit_Constant (self , node : ast .Constant ) -> None :
82
82
"""
83
83
Visit an AST Constant node.
84
84
@@ -91,7 +91,7 @@ def visit_Constant(self, node: ast.Constant):
91
91
self ._check_linux (node )
92
92
self ._check_windows (node )
93
93
94
- def _check_linux (self , node : Union [ast .Str , ast .Constant ]):
94
+ def _check_linux (self , node : Union [ast .Str , ast .Constant ]) -> None :
95
95
"""
96
96
Perform the check for Linux-specific codes.
97
97
@@ -105,7 +105,7 @@ def _check_linux(self, node: Union[ast.Str, ast.Constant]):
105
105
STRFTIME001 ,
106
106
))
107
107
108
- def _check_windows (self , node : Union [ast .Str , ast .Constant ]):
108
+ def _check_windows (self , node : Union [ast .Str , ast .Constant ]) -> None :
109
109
"""
110
110
Perform the check for Windows-specific codes.
111
111
0 commit comments