forked from loafle/openapi-generator-original
[Python] 5094 followup - Reduce redundancy in docs (#5161)
* Reduce redundancy in python docs This is a followup to PR #5094, which had a few unresolved comments at merge time. This reduces the amount of redundant lines in the api example doc templates, and ensures that referenced Configuration objects are actually instantiated. * Regenerate samples
This commit is contained in:
committed by
GitHub
parent
197cea3248
commit
c943ecfe28
@@ -23,7 +23,7 @@ import petstore_api
|
||||
from pprint import pprint
|
||||
|
||||
# Enter a context with an instance of the API client
|
||||
with petstore_api.ApiClient(configuration) as api_client:
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = petstore_api.AnotherFakeApi(api_client)
|
||||
client_client = petstore_api.Client() # client.Client | client model
|
||||
|
||||
Reference in New Issue
Block a user