Skip to content

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

Closed
@theFong

Description

@theFong

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions