Skip to content

'module' object is not callable when following generated readme #247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
theFong opened this issue Nov 20, 2020 · 3 comments · Fixed by #248
Closed

'module' object is not callable when following generated readme #247

theFong opened this issue Nov 20, 2020 · 3 comments · Fixed by #248
Labels
🐞bug Something isn't working
Milestone

Comments

@theFong
Copy link

theFong commented Nov 20, 2020

Describe the bug
When following the generated readme for a python client, I am receiving the following error
TypeError: 'module' object is not callable
when making a call to the endpoint.

The direction I followed can be found in the readme here.

To Reproduce
Steps to reproduce the behavior:

  1. Generate a client
  2. Follow endpoint call section of the readme.

Expected behavior
The endpoint to be called with given arguments according to Readme.

Question
Is the correct behavior to do something like
my_data: MyDataModel = get_my_data_model.sync_detail(client=client)
or
my_data: MyDataModel = await get_my_data_model.asyncio_detailed(client=client)
Should the readme be updated? Or am I missing something.

Thanks!

@theFong theFong added the 🐞bug Something isn't working label Nov 20, 2020
@theFong
Copy link
Author

theFong commented Nov 20, 2020

Appears the readme is out of date with regards to ApiResponseError as well

@dbanty
Copy link
Collaborator

dbanty commented Nov 20, 2020

Thanks @theFong, can you check out #248 and make sure the new instructions look good?

@dbanty dbanty added this to the 0.7.0 milestone Nov 20, 2020
dbanty added a commit that referenced this issue Nov 20, 2020
@theFong
Copy link
Author

theFong commented Nov 20, 2020

Great! Looks good 👍

dbanty added a commit that referenced this issue Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants