See python-trio/trio#2512 and python-trio/trio#3010
The PR discussion suggests gating it on currently running Trio version, I personally think that's too prone to missed errors and should instead always warn - but prominently mention that you should disable the check if you only support new Trio versions.