Skip to content

Commit ef6f2d0

Browse files
committed
Format codebase
1 parent 8d5f95f commit ef6f2d0

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

mypy/fastparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,7 @@ def visit_UnaryOp(self, n: UnaryOp) -> Type:
20332033
if (
20342034
isinstance(typ, RawExpressionType)
20352035
# Use type() because we do not want to allow bools.
2036-
and type(typ.literal_value) is int # noqa: E721
2036+
and type(typ.literal_value) is int
20372037
):
20382038
if isinstance(n.op, USub):
20392039
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/server/astmerge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def replacement_map_from_symbol_table(
160160
):
161161
new_node = new[name]
162162
if (
163-
type(new_node.node) == type(node.node) # noqa: E721
163+
type(new_node.node) == type(node.node)
164164
and new_node.node
165165
and node.node
166166
and new_node.node.fullname == node.node.fullname

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)