Skip to content

Commit 1b416a0

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mypy/test/teststubtest.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import tempfile
1010
import textwrap
1111
import unittest
12+
import unittest.mock
1213
from collections.abc import Iterator
1314
from typing import Any, Callable
14-
import unittest.mock
1515

1616
import mypy.stubtest
1717
from mypy import build, nodes
@@ -1668,9 +1668,7 @@ def test_not_subclassable(self) -> Iterator[Case]:
16681668
@collect_cases
16691669
def test_disjoint_base(self) -> Iterator[Case]:
16701670
# TODO: Remove this patch once PEP 800 is accepted
1671-
with unittest.mock.patch.object(
1672-
sys, "argv", new=sys.argv + ["--check-disjoint-bases"]
1673-
):
1671+
with unittest.mock.patch.object(sys, "argv", new=sys.argv + ["--check-disjoint-bases"]):
16741672
yield Case(
16751673
stub="""
16761674
class A: pass

0 commit comments

Comments
 (0)