Skip to content

Modules not being publically exported (Pyright) #631

Closed
@diblaze

Description

@diblaze

Describe the bug
Pyright will throw an error about imports not being publically exported.

To Reproduce
Steps to reproduce the behavior:

  1. Generate an client
  2. Import a module from the client
    from test_client.models import test
  3. Pyright will throw an error "test" is not exported from module "test_client.models"

Expected behavior
All public exports should be exported with a redudant alias.
from .feature import Feature should be from .feature import Feature as Feature

Additional context
Pyright will check imports in specific ways, which can be found here https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface.

Can also be fixed in the way issue #540 suggested.

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