# From jsh9/docstring_parser_fork:
# tests/test_rest_attr_parser.py::test_parser_attributes
=== input

            My Class

            .. attribute :: attr_1
                :type: str

            .. attribute :: attr_2
                :type: bool

                Attr 2

            .. attribute :: attr_3

                Attr 3

            .. attribute :: attr_4
            .. attribute :: attr_5
            .. attribute :: attr_6
                :type: dict | list

                !

            :param name: My name
            :type name: str
            
=== detect
rest
=== parse rest
short_description: 'My Class'
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  kind: attribute
  key: 'attribute'
  arg_name: 'attr_1'
  type_name: 'str'
  is_optional: False
- DocstringParam
  description: 'Attr 2'
  kind: attribute
  key: 'attribute'
  arg_name: 'attr_2'
  type_name: 'bool'
  is_optional: False
- DocstringParam
  description: 'Attr 3'
  kind: attribute
  key: 'attribute'
  arg_name: 'attr_3'
  is_optional: False
- DocstringParam
  kind: attribute
  key: 'attribute'
  arg_name: 'attr_4'
  is_optional: False
- DocstringParam
  kind: attribute
  key: 'attribute'
  arg_name: 'attr_5'
  is_optional: False
- DocstringParam
  description: '!'
  kind: attribute
  key: 'attribute'
  arg_name: 'attr_6'
  type_name: 'dict | list'
  is_optional: False
- DocstringParam
  description: 'My name'
  kind: param
  key: 'param'
  arg_name: 'name'
  type_name: 'str'
  is_optional: False
=== compose rest
My Class


:attribute str attr_1:
:attribute bool attr_2: Attr 2
:attribute attr_3: Attr 3
:attribute attr_4:
:attribute attr_5:
:attribute attr_6: !
:type attr_6: dict | list
:param str name: My name
