﻿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
32156	Add __class_getitem__ to support runtime type parameters for more classes	Brady Kieffer	Brady Kieffer	"We use the library django-stubs pretty extensively. Recently, they introduced a patch treating more types as Generics. To handle this on our side we either need to work `mypy` in a decently annoying manner. Much like issue #31223, I propose we add a `__class_getitem__` to the following classes:

* BaseModelAdmin
* Options
* Lookup
* Field

Much like before `__class_getitem__` would purely be for `mypy` type checks and a no-op for the django runtime. Only other thing to note, for us the most important class to update would be `BaseModelAdmin`, so if there are reasons not to add `__class_getitem__` to the other classes, I can forgo that change.

Related patch - Fixed #31223: https://github.com/django/django/pull/12405
django-stubs: https://github.com/typeddjango/django-stubs"	New feature	closed	Utilities	2.2	Normal	wontfix	types, mypy, django-stubs		Unreviewed	0	0	0	0	1	0
