Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 5, 2022
1 parent f734808 commit 42fc700
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mypy_silent/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def mypy_silent(
for info in infos:
if info.position in processed:
continue
with open(info.position.filename, "r") as f:
with open(info.position.filename) as f:
file_contents = f.readlines()

old_content = file_contents[info.position.line - 1]
Expand Down
3 changes: 2 additions & 1 deletion mypy_silent/parser.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import re
from typing import FrozenSet
from typing import Iterable
from typing import NamedTuple
from typing import FrozenSet
from typing import Optional

from typing_extensions import Final

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

0 comments on commit 42fc700

Please sign in to comment.