class_docstr: ``Stash`` is a type-safe heterogeneous mutable mapping that
  allows keys and value types to be defined separately from
  where it (the ``Stash``) is created.
  
  Usually you will be given an object which has a ``Stash``, for example
  :class:`~pytest.Config` or a :class:`~_pytest.nodes.Node`:
  
  .. code-block:: python
  
      stash: Stash = some_object.stash
  
  If a module or plugin wants to store data in this ``Stash``, it creates
  :class:`StashKey`\s for its keys (at the module level):
  
  .. code-block:: python
  
      # At the top-level of the module
      some_str_key = StashKey[str]()
      some_bool_key = StashKey[bool]()
  
  To store information:
  
  .. code-block:: python
  
      # Value type must match the key.
      stash[some_str_key] = "value"
      stash[some_bool_key] = True
  
  To retrieve the information:
  
  .. code-block:: python
  
      # The static type of some_str is str.
      some_str = stash[some_str_key]
      # The static type of some_bool is bool.
      some_bool = stash[some_bool_key]
class_docstr_tok: ["``","Stash","``","is","a","type-safe","heterogeneous","mutable","mapping","that","allows","keys","and","value","types","to","be","defined","separately","from","where","it","(","the","``","Stash","``",")","is","created",".","Usually","you","will","be","given","an","object","which","has","a","``","Stash","``",",","for","example",":","class",":","`","~pytest.Config","`","or","a",":","class",":","`","~_pytest.nodes.Node","`",":","..","code-block",":",":","python","stash",":","Stash","=","some_object.stash","If","a","module","or","plugin","wants","to","store","data","in","this","``","Stash","``",",","it","creates",":","class",":","`","StashKey","`","\\s","for","its","keys","(","at","the","module","level",")",":","..","code-block",":",":","python","#","At","the","top-level","of","the","module","some_str_key","=","StashKey","[","str","]","(",")","some_bool_key","=","StashKey","[","bool","]","(",")","To","store","information",":","..","code-block",":",":","python","#","Value","type","must","match","the","key",".","stash","[","some_str_key","]","=","``","value","''","stash","[","some_bool_key","]","=","True","To","retrieve","the","information",":","..","code-block",":",":","python","#","The","static","type","of","some_str","is","str",".","some_str","=","stash","[","some_str_key","]","#","The","static","type","of","some_bool","is","bool",".","some_bool","=","stash","[","some_bool_key","]"]
docstr: Return whether key was set.
docstr_tok: ["Return","whether","key","was","set","."]
code: def __contains__(self, key: StashKey[T]) -> bool:
      """Return whether key was set."""
      return key in self._storage
  
file_path: catboost/contrib/python/pytest/py3/_pytest/stash.py
imports: from typing import Any
  from typing import cast
  from typing import Dict
  from typing import Generic
  from typing import TypeVar
  from typing import Union
label_desc: Use image node_id 7 for calling the Stash obj's underlying member method code with example usage: obj.__contains__(key) and returns: unknown