Skip to content

Commit f75b8ab

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

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

mypy/fastparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2004,7 +2004,7 @@ def visit_UnaryOp(self, n: UnaryOp) -> Type:
20042004
if (
20052005
isinstance(typ, RawExpressionType)
20062006
# Use type() because we do not want to allow bools.
2007-
and type(typ.literal_value) is int # noqa: E721
2007+
and type(typ.literal_value) is int
20082008
):
20092009
if isinstance(n.op, USub):
20102010
typ.literal_value *= -1

mypy/ipc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717

1818
if sys.platform == "win32":
1919
# This may be private, but it is needed for IPC on Windows, and is basically stable
20-
import ctypes
21-
2220
import _winapi
21+
import ctypes
2322

2423
_IPCHandle = int
2524

mypy/stubtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def _verify_arg_default_value(
700700
stub_default != runtime_arg.default
701701
# We want the types to match exactly, e.g. in case the stub has
702702
# True and the runtime has 1 (or vice versa).
703-
or type(stub_default) is not type(runtime_arg.default) # noqa: E721
703+
or type(stub_default) is not type(runtime_arg.default)
704704
)
705705
):
706706
yield (

mypy/util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
from typing_extensions import Literal
1616

1717
try:
18-
import curses
19-
2018
import _curses # noqa: F401
19+
import curses
2120

2221
CURSES_ENABLED = True
2322
except ImportError:

0 commit comments

Comments
 (0)