class_docstr: Abstract base class for prompt_toolkit styles.
class_docstr_tok: ["Abstract","base","class","for","prompt_toolkit","styles","."]
docstr: Return :class:`.Attrs` for the given style string.
  
  :param style_str: The style string. This can contain inline styling as
      well as classnames (e.g. "class:title").
  :param default: `Attrs` to be used if no styling was defined.
docstr_tok: ["Return",":","class",":","`",".Attrs","`","for","the","given","style","string",".",":","param","style_str",":","The","style","string",".","This","can","contain","inline","styling","as","well","as","classnames","(","e.g",".","``","class",":","title","''",")",".",":","param","default",":","`","Attrs","`","to","be","used","if","no","styling","was","defined","."]
code: def get_attrs_for_style_str(
      self, style_str: str, default: Attrs = DEFAULT_ATTRS
  ) -> Attrs:
      """
      Return :class:`.Attrs` for the given style string.
  
      :param style_str: The style string. This can contain inline styling as
          well as classnames (e.g. "class:title").
      :param default: `Attrs` to be used if no styling was defined.
      """
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod, abstractproperty
  from typing import Callable, Hashable, NamedTuple
label_desc: Use image node_id 1 for calling the BaseStyle obj's underlying member method code with example usage: obj.get_attrs_for_style_str(style_str, default) without return types