MCPcopy Index your code
hub / github.com/python/cpython / __class_getitem__

Method __class_getitem__

Lib/test/test_genericclass.py:155–157  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

153 getitem_args = []
154 class C:
155 def __class_getitem__(*args, **kwargs):
156 getitem_args.extend([args, kwargs])
157 return None
158 C[int, str]
159 self.assertEqual(getitem_args[0], (C, (int, str)))
160 self.assertEqual(getitem_args[1], {})

Callers 1

test_c_classMethod · 0.45

Calls 1

extendMethod · 0.45

Tested by

no test coverage detected