Files
django-stubs/tests/typecheck
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
..
2022-04-29 14:44:33 +03:00
2021-06-12 01:05:46 +03:00
2022-04-29 14:44:33 +03:00
2022-08-26 13:22:55 +03:00
2022-08-26 13:22:55 +03:00
2021-06-12 01:05:46 +03:00
2022-04-29 14:44:33 +03:00
2022-04-04 00:41:41 +03:00
2022-04-04 00:41:41 +03:00
2021-06-12 01:05:46 +03:00
2022-04-28 13:01:37 +03:00
2022-04-29 14:44:33 +03:00