Skip to content

Commit a4a9879

Browse files
committed
Fix type hints.
1 parent 75d4916 commit a4a9879

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flake8_encodings/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import configparser
4040
import pathlib
4141
import tempfile
42-
from typing import Iterator, List, Optional, Tuple, Type
42+
from typing import Callable, Iterator, List, Optional, Tuple, Type
4343

4444
# 3rd party
4545
import flake8_helper
@@ -184,6 +184,8 @@ def check_pathlib_encoding(self, node: ast.Call, method_name: str):
184184
.. versionadded:: 0.3.0
185185
"""
186186

187+
function: Callable
188+
187189
if method_name == "open":
188190
no_encoding = ENC021
189191
encoding_none = ENC022

0 commit comments

Comments
 (0)