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

Args:
    x (int, optional): The x.
    y (str (optional)): The y.
    z (float, default 1.0): The z.
=== parse google
short_description: 'Short.'
blank_after_short_description: True
blank_after_long_description: False
style: google
- 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 (optional)'
- 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'
