Open amiwrpremium opened 9 months ago
Upon my further investigation I realized its some sort of conflict with the dependency injector framework. More specifically I think it happens when I'm using the @inject
decorator.
I think it's an issue with django-stub
mypy plugin because if I remove mypy_django_plugin.main
in mypy.ini
plugin configuration, mypy continues to work just fine.
Bug report
What's wrong
NameError: value for final name "attr_class_makers" was not set
I run mypy on my project using:
mypy --config-file ../.mypy.ini --namespace-packages -p samirpy --show-traceback
I got the following errorI believe
get_class_decorator_hook
method inNewSemanalDjangoPlugin
class needs to return something. Since such class is not implemented, its returningPlugin
classget_class_decorator_hook
which is essentially just areturn None
How is that should be
It should continue to work as usual.
System information
python
version:3.11django
version:4.2.3mypy
version:1.7.0django-stubs
version:4.2.7django-stubs-ext
version:4.2.7MyPy Config