Files
django-stubs/mypy_django_plugin
Sigurd Ljødal dde0f2f876 Reparametrize managers without explicit type parameters (#1169)
* Reparametrize managers without explicit type parameters

This extracts the reparametrization logic from #1030 in addition to
removing the codepath that copied methods from querysets to managers.
That code path seems to not be needed with this change.

* Use typevars from parent instead of base

* Use typevars from parent manager instead of base manager

This removes warnings when subclassing from something other than the
base manager class, where the typevar has been restricted.

* Remove unused imports

* Fix failed test

* Only reparametrize if generics are omitted

* Fix docstring

* Add test with disallow_any_generics=True

* Add an FAQ section and document disallow_any_generics behaviour
2022-10-03 20:36:45 +03:00
..
2019-07-24 13:38:49 +03:00
2022-01-05 16:21:14 +03:00