We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f734808 commit 42fc700Copy full SHA for 42fc700
mypy_silent/cli.py
@@ -22,7 +22,7 @@ def mypy_silent(
22
for info in infos:
23
if info.position in processed:
24
continue
25
- with open(info.position.filename, "r") as f:
+ with open(info.position.filename) as f:
26
file_contents = f.readlines()
27
28
old_content = file_contents[info.position.line - 1]
mypy_silent/parser.py
@@ -1,8 +1,9 @@
1
import re
2
+from typing import FrozenSet
3
from typing import Iterable
4
from typing import NamedTuple
-from typing import FrozenSet
5
from typing import Optional
6
+
7
from typing_extensions import Final
8
9
UNUSED_IGNORE_MESSAGES: Final[FrozenSet[str]] = frozenset({"error: unused 'type: ignore' comment", 'error: unused "type: ignore" comment'})
0 commit comments