Skip to content

Commit 41172c3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b5ffed6 commit 41172c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mypy_silent/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def mypy_silent(
2222
for info in infos:
2323
if info.position in processed:
2424
continue
25-
with open(info.position.filename, "r") as f:
25+
with open(info.position.filename) as f:
2626
file_contents = f.readlines()
2727

2828
old_content = file_contents[info.position.line - 1]

mypy_silent/parser.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import re
2+
from typing import FrozenSet
23
from typing import Iterable
34
from typing import NamedTuple
4-
from typing import FrozenSet
55
from typing import Optional
6+
67
from typing_extensions import Final
78

89
UNUSED_IGNORE_MESSAGES: Final[FrozenSet[str]] = frozenset({"error: unused 'type: ignore' comment", 'error: unused "type: ignore" comment'})

0 commit comments

Comments
 (0)