8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
object
1 parent a8d440b commit b61f599Copy full SHA for b61f599
Lib/test/test_type_params.py
@@ -148,6 +148,10 @@ def test_disallowed_expressions(self):
148
check_syntax_error(self, "def f[T: [(x := 3) for _ in range(2)]](): pass")
149
check_syntax_error(self, "type T = [(x := 3) for _ in range(2)]")
150
151
+ def test_incorrect_mro_explicit_object(self):
152
+ with self.assertRaisesRegex(TypeError, r"\(MRO\) for bases object, Generic"):
153
+ class My[X](object): ...
154
+
155
156
class TypeParamsNonlocalTest(unittest.TestCase):
157
def test_nonlocal_disallowed_01(self):
0 commit comments