mirror of
https://github.com/lutris/lutris.git
synced 2026-06-11 15:36:26 -04:00
`"Foo" | None` fails at runtime on Python 3.10–3.13 because str doesn't implement __or__. This only works on 3.14+ where PEP 749 defers annotation evaluation. Add a check for this pattern alongside the existing conditional import check so we catch it before it reaches users. Ref: https://github.com/lutris/lutris/pull/6595 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>