flake8
passed.
JSHint
passed.
Review Request #12921 — Created March 24, 2023 and submitted
The check to see whether the passed-in mode parameter was a valid member
of the enum was incorrect (at least until Python 3.12), due to a
leftover from the implementation before the mode was implemented as an
enum. This was causing a TypeError inside__contains__
, since that
can't check for values, only instances.This change updates it to attempt to construct a
Mode
enum from the
value, and catching the error if it's not a correct value.
Summary | ID |
---|---|
9223fc839da4e3a169a84c6555a7c6eaba3bf2c6 |