Method
__init__
(
self,
locals: None
| (Local | LocalStack[t.Any] | t.Iterable[Local | LocalStack[t.Any]]) = None,
)
Source from the content-addressed store, hash-verified
| 206 | __slots__ = ("locals",) |
| 207 | |
| 208 | def __init__( |
| 209 | self, |
| 210 | locals: None |
| 211 | | (Local | LocalStack[t.Any] | t.Iterable[Local | LocalStack[t.Any]]) = None, |
| 212 | ) -> None: |
| 213 | if locals is None: |
| 214 | self.locals = [] |
| 215 | elif isinstance(locals, Local): |
| 216 | self.locals = [locals] |
| 217 | else: |
| 218 | self.locals = list(locals) # type: ignore[arg-type] |
| 219 | |
| 220 | def cleanup(self) -> None: |
| 221 | """Release the data in the locals for this context. Call this at |
Callers
nothing calls this directly
Tested by
no test coverage detected