diff options
author | NicoleYarroch <nicole@livio.io> | 2020-10-27 14:28:12 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2020-10-27 14:28:12 -0400 |
commit | 173db9026aa52dfd162f8e87cf2fa911683b022f (patch) | |
tree | e46d3faf98e71d045ba6471061330c22dad4adf8 | |
parent | fedcc5f94ecc87a3a4f15b4cc770e1cf7ba47488 (diff) | |
download | sdl_ios-173db9026aa52dfd162f8e87cf2fa911683b022f.tar.gz |
Fixed return type docs
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r-- | generator/transformers/common_producer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/transformers/common_producer.py b/generator/transformers/common_producer.py index 133f9f214..a3e77368d 100644 --- a/generator/transformers/common_producer.py +++ b/generator/transformers/common_producer.py @@ -385,7 +385,7 @@ class InterfaceProducerCommon(ABC): Gets all the descriptors for a parameter (e.g. {"string_min_length": 1, string_max_length": 500}). The parameters should be returned in the same order they were added to the parameterItems dictionary :param param_type: param_type from the initial Model :param parameterItems: Ordered dictionary that stores each of the parameter's descriptors - :return: All the descriptor params from param_type concatenated into one string + :return: All the descriptor params """ # The key is a descriptor (i.e. max_value) and value is the associated value (i.e. 100). Some values will be dictionaries that have to be parsed to get additional descriptors (e.g. the value for an array of strings' data type will be sub-dictionary describing the min_length, max_length, and default value for the strings used in the array) for key, value in param_type.__dict__.items(): @@ -411,7 +411,7 @@ class InterfaceProducerCommon(ABC): Creates a documentation string of the default value for a parameter from the param. (HAX: The default_value for Enums and Bools are not saved to the param's param_type model for some reason) :param param: param from the initial Model :param parameterItems: Ordered dictionary that stores each of the parameter's descriptors - :return: All the descriptor params from param_type concatenated into one string + :return: All the descriptor params """ if param.default_value is None: return parameterItems |