class_docstr: A callable for parsing and resolving CSS to atomic properties.
class_docstr_tok: ["A","callable","for","parsing","and","resolving","CSS","to","atomic","properties","."]
code: def _update_initial(
      self,
      props: dict[str, str],
      inherited: dict[str, str],
  ) -> dict[str, str]:
      # 1. resolve inherited, initial
      for prop, val in inherited.items():
          if prop not in props:
              props[prop] = val
  
      new_props = props.copy()
      for prop, val in props.items():
          if val == "inherit":
              val = inherited.get(prop, "initial")
  
          if val in ("initial", None):
              # we do not define a complete initial stylesheet
              del new_props[prop]
          else:
              new_props[prop] = val
      return new_props
  
file_path: catboost/contrib/python/pandas/py3/pandas/io/formats/css.py
imports: from __future__ import annotations
  import re
  from typing import Callable, Generator, Iterable, Iterator
  import warnings
  from pandas.errors import CSSWarning
  from pandas.util._exceptions import find_stack_level
label_desc: Use image node_id 2 for calling the CSSResolver obj's underlying member method code with example usage: obj._update_initial(props, inherited) and returns: new_props