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

Method test__LocalStack__class_getitem__

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

Source from the content-addressed store, hash-verified

37 assert get_args(Signature[str]) == (str,), "__class_getitem__ returns a GenericAlias"
38
39 def test__LocalStack__class_getitem__(self):
40 stack = _LocalStack[Context]()
41 assert isinstance(stack, _LocalStack), "_LocalStack can be instantiated with type parameters"
42 assert get_args(_LocalStack[Context]) == (Context,), "__class_getitem__ returns a GenericAlias"
43
44 def test__FastLocalStack__class_getitem__(self):
45 s = _FastLocalStack[Context]()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected