4 questions from the last 7 days
1
vote
1
answer
76
views
Is there a way to install only stubs (types) and nothing more of a pypi package?
Objective
I'm using mypy to type check my code.
Locally, this works fine by running mypy --install-types once on setup. It installs e.g. scipy-stubs, because the stubs are in an extra package. It ...
1
vote
1
answer
66
views
Sqlalchemy mapped_column typing issues with pylance
I am currently defining ORMs and DTOs in my fastapi application, and using SQLAlchemy 2.0 for this job.
Many sources, including the official docs, specify that the way to use mapped types with ORMs is ...