MCPcopy Index your code
hub / github.com/python/typing / test_invalid

Method test_invalid

typing_extensions/src/test_typing_extensions.py:343–349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

341 T_ints = IntVar("T_ints") # noqa
342
343 def test_invalid(self):
344 with self.assertRaises(TypeError):
345 T_ints = IntVar("T_ints", int)
346 with self.assertRaises(TypeError):
347 T_ints = IntVar("T_ints", bound=int)
348 with self.assertRaises(TypeError):
349 T_ints = IntVar("T_ints", covariant=True) # noqa
350
351
352class LiteralTests(BaseTestCase):

Callers

nothing calls this directly

Calls 1

IntVarFunction · 0.90

Tested by

no test coverage detected