1 """Helpers for script and automation tracing and debugging."""
3 from __future__
import annotations
5 from collections
import OrderedDict
10 """OrderedDict limited in size."""
12 def __init__(self, *args: Any, **kwds: Any) ->
None:
13 """Initialize OrderedDict limited in size."""
19 """Set item and check dict size."""
24 """Check dict size and evict items in FIFO order if needed."""
27 self.popitem(last=
False)
None _check_size_limit(self)
None __setitem__(self, _KT key, _VT value)
None __init__(self, *Any args, **Any kwds)