#32156: Add __class_getitem__ to support runtime type parameters for more
classes
-------------------------------------+-------------------------------------
Reporter: Brady Kieffer | Owner: Brady
| Kieffer
Type: New feature | Status: closed
Component: Utilities | Version: 2.2
Severity: Normal | Resolution: needsinfo
Keywords: types, mypy, | Triage Stage:
django-stubs | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Carlton Gibson):
Hi Brady.
I was following up with `mypy` folks here, trying to workout if there
really is no option beyond the trivial `__class_getitem__` implementation.
It was asked whether `from __future__ import annotations`
[https://www.python.org/dev/peps/pep-0563/ as per PEP 563] would stop the
interpreter error.
Can you comment on that?
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/32156#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.436316637b3bb645c1dfe9e340733fdb%40djangoproject.com.