1
0
forked from VimPlug/jedi

Make it possible to use inheritance on generics without always specifying type vars, see also discussion in #1593

This commit is contained in:
Dave Halter
2020-06-06 01:23:14 +02:00
parent 3870253b56
commit 574b790296
5 changed files with 38 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ def _create_manager_for(cls, manager_cls='BaseManager'):
('django', 'db', 'models', 'manager')
).py__getattribute__(manager_cls)
for m in managers:
if m.is_class() and not m.is_compiled():
if m.is_class_mixin():
generics_manager = TupleGenericManager((ValueSet([cls]),))
for c in GenericClass(m, generics_manager).execute_annotation():
return c