﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33558	Abstract model inheriting from typing.Generic[T] causes TypeError	Rob Percival	nobody	"The exception message is ""**TypeError: Cannot inherit from plain Generic**"". Example:

{{{
T = typing.TypeVar(""T"")

class AbstractModel(models.Model, Generic[T]):
    foo: T  # Bad example of how you might use a TypeVar

    class Meta:
        abstract = True

class IntModel(AbstractModel[int]):
    …
}}}

A better explanation of the issue and a patch can be found here: https://github.com/typeddjango/django-stubs/issues/299"	Bug	closed	Database layer (models, ORM)	4.0	Normal	duplicate			Unreviewed	0	0	0	0	0	0
