Seems like the same issue was fixed before but crept back in: #1332
Shiny is incompatible with mypy:
% mypy .
venv/lib/python3.11/site-packages/shiny/render/_data_frame_utils/_selection.py:154: error: invalid syntax [syntax]
Found 1 error in 1 file (errors prevented further checking)
Unfortunately seems like it's not possible to edit one's mypy configuration to get past a syntax error in a dependency.
I'm working around it by just deleting line 154 of _selection.py for now.