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.
1 parent b15af16 commit cd5cd00Copy full SHA for cd5cd00
1 file changed
src/test_typing_extensions.py
@@ -6809,12 +6809,11 @@ class E(type(Unpack)): pass
6809
class F(type(*Ts)): pass
6810
with self.assertRaisesRegex(TypeError, CANNOT_SUBCLASS_TYPE):
6811
class G(type(Unpack[Ts])): pass
6812
- with self.assertRaisesRegex(TypeError,
6813
- r'Cannot subclass (typing|typing_extensions)\.Unpack'):
+ with self.assertRaises(TypeError):
6814
class H(Unpack): pass
6815
- with self.assertRaisesRegex(TypeError, r'Cannot subclass (typing|typing_extensions)\.Unpack\[Ts\]'):
6816
class I(*Ts): pass # noqa: E742
6817
6818
class J(Unpack[Ts]): pass
6819
6820
0 commit comments