Skip to content

Commit

Permalink
Small test change
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Feb 28, 2021
1 parent d112850 commit 4e3cf53
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unittest_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,7 @@ def check_metaclass(node: nodes.ClassDef):
T = TypeVar("T")
MutableSet[T]
class Derived(MutableSet[T]):
class Derived1(MutableSet[T]):
pass
"""
)
Expand All @@ -1247,7 +1247,7 @@ class Derived(MutableSet[T]):
assertEqualMro(
inferred,
[
"Derived",
"Derived1",
"MutableSet",
"Set",
"Collection",
Expand All @@ -1261,7 +1261,7 @@ class Derived(MutableSet[T]):
node = builder.extract_node(
"""
import typing
class Derived(typing.OrderedDict[int, str]):
class Derived2(typing.OrderedDict[int, str]):
pass
"""
)
Expand All @@ -1270,7 +1270,7 @@ class Derived(typing.OrderedDict[int, str]):
assertEqualMro(
inferred,
[
"Derived",
"Derived2",
"OrderedDict",
"dict",
"object",
Expand All @@ -1280,7 +1280,7 @@ class Derived(typing.OrderedDict[int, str]):
node = builder.extract_node(
"""
import typing
class Derived(typing.Pattern[str]):
class Derived3(typing.Pattern[str]):
pass
"""
)
Expand All @@ -1289,7 +1289,7 @@ class Derived(typing.Pattern[str]):
assertEqualMro(
inferred,
[
"Derived",
"Derived3",
"Pattern",
"object",
],
Expand Down

0 comments on commit 4e3cf53

Please sign in to comment.