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

types-psycopg2 should be optional dependency? #269

Open
anentropic opened this issue Oct 2, 2024 · 1 comment
Open

types-psycopg2 should be optional dependency? #269

anentropic opened this issue Oct 2, 2024 · 1 comment

Comments

@anentropic
Copy link

I noticed that adding django-types to my project installed types-psycopg2 too

But I'm not using Postgres db and I don't have psycopg2 installed

In Django that's an optional dependency that has to be installed manually

@sbdchd
Copy link
Owner

sbdchd commented Oct 2, 2024

I'd be curious what happens when it's not installed and someone tries to use a Django Postgres specific thing, since we depend on the types:

from psycopg2.extensions import Column

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

2 participants