Mercurial > lbo > hg > async-google-apis
changeset 59:de733a7cd1a7
yapf
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Mon, 19 Oct 2020 19:29:46 +0200 |
parents | e6204806a74e |
children | 7a311388889e |
files | generate/generate.py |
diffstat | 1 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/generate/generate.py Mon Oct 19 19:29:35 2020 +0200 +++ b/generate/generate.py Mon Oct 19 19:29:46 2020 +0200 @@ -73,11 +73,7 @@ # Structs are represented as dicts that can be used to render the SchemaStructTmpl. if 'properties' in schema: typ = name - struct = { - 'name': name, - 'description': schema.get('description', ''), - 'fields': [] - } + struct = {'name': name, 'description': schema.get('description', ''), 'fields': []} for pn, pp in schema['properties'].items(): subtyp, substructs = parse_schema_types(name + capitalize_first(pn), pp, optional=True) if type(subtyp) is tuple: @@ -186,9 +182,9 @@ methodname) + 'Params' print("processed:", resourcename, methodname, param_type_name) struct = { - 'name': param_type_name, - 'description': 'Parameters for the `{}.{}` method.'.format(resourcename, methodname), - 'fields': [] + 'name': param_type_name, + 'description': 'Parameters for the `{}.{}` method.'.format(resourcename, methodname), + 'fields': [] } # Build struct dict for rendering. if 'parameters' in method: