# Test that a type marks its param optional, or gives its default, the
# same way in every style.
=== input
Short.

:param x: The x.
:type x: int, optional
:param y: The y.
:type y: str?
:param z: The z.
:type z: float, default 1.0
=== parse rest
short_description: 'Short.'
blank_after_short_description: True
blank_after_long_description: False
style: rest
- DocstringParam
  description: 'The x.'
  kind: param
  key: 'param'
  arg_name: 'x'
  type_name: 'int'
  is_optional: True
  raw_type_name: 'int, optional'
- DocstringParam
  description: 'The y.'
  kind: param
  key: 'param'
  arg_name: 'y'
  type_name: 'str'
  is_optional: True
  raw_type_name: 'str?'
- DocstringParam
  description: 'The z.'
  kind: param
  key: 'param'
  arg_name: 'z'
  type_name: 'float'
  is_optional: True
  default: '1.0'
  raw_type_name: 'float, default 1.0'
