# Test that :ivar:, :var: and :cvar: fields are attributes, which their
# :vartype: fields type, and that compose keeps their field names.
=== input
Short.

:ivar a: The a.
:vartype a: int
:var b: The b.
:cvar c: The c.
:vartype c: str, optional
=== parse rest
short_description: 'Short.'
blank_after_short_description: True
blank_after_long_description: False
style: rest
- DocstringParam
  description: 'The a.'
  kind: attribute
  key: 'ivar'
  arg_name: 'a'
  type_name: 'int'
  is_optional: False
- DocstringParam
  description: 'The b.'
  kind: attribute
  key: 'var'
  arg_name: 'b'
  is_optional: False
- DocstringParam
  description: 'The c.'
  kind: attribute
  key: 'cvar'
  arg_name: 'c'
  type_name: 'str'
  is_optional: True
  raw_type_name: 'str, optional'
=== compose rest
Short.

:ivar int a: The a.
:var b: The b.
:cvar c: The c.
:vartype c: str, optional
=== compose rest expanded
Short.

:ivar a:
    The a.
:vartype a: int
:var b:
    The b.
:cvar c:
    The c.
:vartype c: str, optional
