(self)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected