Followup to r59536: make "is_argument_optional" available to py, and use it in API doc generation.

Thanks Campbell for the much better name suggestion!
This commit is contained in:
2013-08-26 21:39:06 +00:00
parent 1679cd7f96
commit 71e5e90fb7
2 changed files with 14 additions and 0 deletions

View File

@@ -296,6 +296,8 @@ class InfoPropertyRNA:
elif as_arg:
if not self.is_required:
type_info.append("optional")
if self.is_argument_optional:
type_info.append("optional argument")
else: # readonly is only useful for self's, not args
if self.is_readonly:
type_info.append("readonly")