Closed Zenthae closed 8 months ago
For BaseDBConfig
? Or what kind of types do you mean?
It would be nice to have types (and auto-completions in IDE) for:
from django.conf import settings
settings. # <- here
But I'm afraid it's not possible by Django design.
@q0w @andrey-lepekhin do you have idea how to implement that?
You can typecheck settings.* by https://github.com/typeddjango/django-stubs special mypy plugin, but no auto-completion
What i meant is that without the py.typed
file, you get error messages from MyPy and Pylance telling you that this package doesn't support types while it's not true, things are typed, it's just missing this file to tell them it's enabled
Without the file:
With the file:
Hello, from what I can see, types are implemented, so, would it be possible to add the py.typed file for pylance, mypy and other type checker to work with this lib ?