Fix a Python 3.10-ism that crept in.
Review Request #14846 — Created Feb. 23, 2026 and submitted — Latest diff uploaded
One call to
cast()was usingdict[]syntax, which only works on
Python 3.10 and up.
- Ran unit tests.
- Scanned through the codebase for all usage of
cast()(as well as
annotations without__future__.annotationsin the file,TypeAlias,
andisinstance()) to verify we didn't have this problem elsewhere
in a place not covered by tests.