parameters: (
          cls, style_dict: Dict[str, str], priority: Priority = default_priority
      )
docstring: :param style_dict: Style dictionary.
          :param priority: `Priority` value.
docstring_summary: :param style_dict: Style dictionary.
          :param priority: `Priority` value.
docstring_tokens: : param style_dict : Style dictionary . : param priority : Priority value .
function: def from_dict(
          cls, style_dict: Dict[str, str], priority: Priority = default_priority
      ) -> "Style":
          """
          :param style_dict: Style dictionary.
          :param priority: `Priority` value.
          """
          if priority == Priority.MOST_PRECISE:
  
              def key(item: Tuple[str, str]) -> int:
                  # Split on '.' and whitespace. Count elements.
                  return sum(len(i.split(".")) for i in item[0].split())
  
              return cls(sorted(style_dict.items(), key=key))
          else:
              return cls(list(style_dict.items()))
function_tokens: def from_dict ( cls , style_dict : Dict [ str , str ] , priority : Priority = default_priority ) -> "Style" : if priority == Priority . MOST_PRECISE : def key ( item : Tuple [ str , str ] ) -> int : # Split on '.' and whitespace. Count elements. return sum ( len ( i . split ( "." ) ) for i in item [ 0 ] . split ( ) ) return cls ( sorted ( style_dict . items ( ) , key = key ) ) else : return cls ( list ( style_dict . items ( ) ) )