From d0f3cd642d01de18017c2a3d0b999c2337230219 Mon Sep 17 00:00:00 2001 From: wing328 Date: Thu, 13 Oct 2016 15:28:11 +0800 Subject: [PATCH] fix missing () in python doc --- .../swagger-codegen/src/main/resources/python/README.mustache | 2 +- samples/client/petstore/python/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/python/README.mustache b/modules/swagger-codegen/src/main/resources/python/README.mustache index 9f592946b0..9f43244744 100644 --- a/modules/swagger-codegen/src/main/resources/python/README.mustache +++ b/modules/swagger-codegen/src/main/resources/python/README.mustache @@ -70,7 +70,7 @@ from pprint import pprint {{{packageName}}}.configuration.access_token = 'YOUR_ACCESS_TOKEN'{{/isOAuth}}{{/authMethods}} {{/hasAuthMethods}} # create an instance of the API class -api_instance = {{{packageName}}}.{{{classname}}} +api_instance = {{{packageName}}}.{{{classname}}}() {{#allParams}}{{paramName}} = {{{example}}} # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} {{/allParams}} diff --git a/samples/client/petstore/python/README.md b/samples/client/petstore/python/README.md index ec654c5190..7b29cebd53 100644 --- a/samples/client/petstore/python/README.md +++ b/samples/client/petstore/python/README.md @@ -51,7 +51,7 @@ import petstore_api from petstore_api.rest import ApiException from pprint import pprint # create an instance of the API class -api_instance = petstore_api.FakeApi +api_instance = petstore_api.FakeApi() body = petstore_api.Client() # Client | client model try: