MCPcopy Create free account
hub / github.com/celery/celery / test__FastLocalStack__class_getitem__

Method test__FastLocalStack__class_getitem__

t/unit/test_generics.py:44–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 assert get_args(_LocalStack[Context]) == (Context,), "__class_getitem__ returns a GenericAlias"
43
44 def test__FastLocalStack__class_getitem__(self):
45 s = _FastLocalStack[Context]()
46 assert isinstance(s, _FastLocalStack), "_FastLocalStack can be instantiated with type parameters"
47 assert get_args(_FastLocalStack[Context]) == (Context,), "__class_getitem__ returns a GenericAlias"
48
49 def test_FallbackContext__class_getitem__(self):
50 @contextlib.contextmanager

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected