class_docstr: Iterative lookup in a stack of dicts
  
  Assignments go into an internal dict that is also the first place
  where a lookup is done.
class_docstr_tok: ["Iterative","lookup","in","a","stack","of","dicts","Assignments","go","into","an","internal","dict","that","is","also","the","first","place","where","a","lookup","is","done","."]
code: def get(self, key: str, default: Any = None) -> Any:
      with suppress(KeyError):
          return self[key]
      return default
  
imports: from __future__ import annotations
  from collections.abc import MutableMapping
  from contextlib import suppress
  from dataclasses import dataclass
  from functools import lru_cache
  from typing import TYPE_CHECKING
label_desc: Use image node_id 8 for calling the StackedLookup obj's underlying member method code with example usage: obj.get(key, default) and returns: default, self