diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2023-10-16 19:25:17 +0100 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2023-10-23 14:51:27 -0300 |
| commit | 711c0547224de00aee39b8720c706ac4977e89fd (patch) | |
| tree | 9305adcbc912d920a431f435ba8b10b9cd169f1b /django/__init__.py | |
| parent | 08aa336af46f30a29577a96588eeb3b440cd6dad (diff) | |
[5.0.x] Refs #31262 -- Added __eq__() and __getitem__() to BaseChoiceIterator.
This makes it easier to work with lazy iterators used for callables,
etc. when extracting items or comparing to lists, e.g. during testing.
Also added `BaseChoiceIterator.__iter__()` to make it clear that
subclasses must implement this and added `__all__` to the module.
Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>
Backport of 07fa79ef2bb3e8cace7bd87b292c6c85230eed05 from main
Diffstat (limited to 'django/__init__.py')
0 files changed, 0 insertions, 0 deletions
