)]}'
{"oslo_config/cfg.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"b481c4a4a86a54e11e4d7c7edb2199912fa4de1e","unresolved":false,"context_lines":[{"line_number":39,"context_line":"------------"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Options can have arbitrary types via the `type` parameter to the :class:`Opt`"},{"line_number":42,"context_line":"constructor. The `type` parameter is a callable object that takes a string and"},{"line_number":43,"context_line":"either returns a value of that particular type or raises :class:`ValueError` if"},{"line_number":44,"context_line":"the value can not be converted."},{"line_number":45,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"dfeb2761_ff835655","side":"PARENT","line":42,"updated":"2017-03-31 17:40:26.000000000","message":"I think the point of saying that the type function has to be able to take a string is that when we read a configuration file, we will have a string value to pass in for conversion. The fact that using the function directly allows us to sometimes pass other types of values isn\u0027t necessarily relevant, since that\u0027s not how it\u0027s intended to be used.","commit_id":"b5d65b025c5c9dfca8945a2018c3b2b6e9ccb62e"},{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"580062b72be88e2a09afc8647d29b1110a101ad2","unresolved":false,"context_lines":[{"line_number":39,"context_line":"------------"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Options can have arbitrary types via the `type` parameter to the :class:`Opt`"},{"line_number":42,"context_line":"constructor. The `type` parameter is a callable object that takes a value and"},{"line_number":43,"context_line":"either returns a validated value of that `type` or raises :class:`ValueError`"},{"line_number":44,"context_line":"if the value can not be converted."},{"line_number":45,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ffe62b97_732231bb","line":42,"range":{"start_line":42,"start_character":56,"end_line":42,"end_character":73},"updated":"2017-03-29 14:08:12.000000000","message":"just remove this ?","commit_id":"60d6bd3f351248db9e08cb5cdd8672cd7d241571"},{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"580062b72be88e2a09afc8647d29b1110a101ad2","unresolved":false,"context_lines":[{"line_number":643,"context_line":"    common to also supply a default and help string for all options."},{"line_number":644,"context_line":""},{"line_number":645,"context_line":"    :param name: the option\u0027s name"},{"line_number":646,"context_line":"    :param type: the option\u0027s type. Must be a callable object that takes string"},{"line_number":647,"context_line":"                 and returns converted and validated value"},{"line_number":648,"context_line":"    :param dest: the name of the corresponding :class:`.ConfigOpts` property"},{"line_number":649,"context_line":"    :param short: a single character CLI option name"},{"line_number":650,"context_line":"    :param default: the default value of the option"}],"source_content_type":"text/x-python","patch_set":1,"id":"ffe62b97_ce20329e","line":647,"range":{"start_line":646,"start_character":0,"end_line":647,"end_character":58},"updated":"2017-03-29 14:08:12.000000000","message":"need keep consistent with above description.","commit_id":"60d6bd3f351248db9e08cb5cdd8672cd7d241571"}]}
