Skip to content

Commit 711867b

Browse files
committed
.
1 parent c5dc7e7 commit 711867b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

mypy/test/testsubtypes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from mypy.subtypes import is_subtype
55
from mypy.test.helpers import Suite
66
from mypy.test.typefixture import InterfaceTypeFixture, TypeFixture
7-
from mypy.types import Instance, Type, UnpackType
7+
from mypy.types import Instance, Type, UninhabitedType, UnpackType
88

99

1010
class SubtypingSuite(Suite):
@@ -87,7 +87,7 @@ def test_basic_callable_subtyping(self) -> None:
8787
)
8888

8989
self.assert_strict_subtype(
90-
self.fx.callable(self.fx.a, self.fx.nonet), self.fx.callable(self.fx.a, self.fx.a)
90+
self.fx.callable(self.fx.a, UninhabitedType()), self.fx.callable(self.fx.a, self.fx.a)
9191
)
9292

9393
self.assert_unrelated(

mypy/test/testtypes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,9 @@ def test_tuples(self) -> None:
11291129
self.assert_meet(
11301130
self.tuple(self.fx.a, self.fx.a), self.fx.std_tuple, self.tuple(self.fx.a, self.fx.a)
11311131
)
1132-
self.assert_meet(self.tuple(self.fx.a), self.tuple(self.fx.a, self.fx.a), UninhabitedType())
1132+
self.assert_meet(
1133+
self.tuple(self.fx.a), self.tuple(self.fx.a, self.fx.a), UninhabitedType()
1134+
)
11331135

11341136
def test_function_types(self) -> None:
11351137
self.assert_meet(

0 commit comments

Comments
 (0)