Skip to content
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

SQLC does not create __init__.py file #48

Open
Goldziher opened this issue Jun 7, 2024 · 0 comments
Open

SQLC does not create __init__.py file #48

Goldziher opened this issue Jun 7, 2024 · 0 comments

Comments

@Goldziher
Copy link

Goldziher commented Jun 7, 2024

Issue: The generated output package does not have an __init__.py file.

This file makes the output into a Python package; otherwise, it's just a bunch of files. Furthermore, the imports in the files do not work correctly without it.

The __init__.py file should include all the exports of the generated code and an __all__ = [...] variable inside the file (otherwise linters, mypy and intellij will complain).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant