This rule could've caught an issue in pywin32 (https://github.com/mhammond/pywin32/pull/2416). I think it's a valid rule to enforce on runtime files to prevent incorrect expectations.
MRE:
if sys.version_info > (3, 10): # PYI006 only shows here in .pyi files
print("Do something on Python 3.11")
This rule could've caught an issue in pywin32 (https://github.com/mhammond/pywin32/pull/2416). I think it's a valid rule to enforce on runtime files to prevent incorrect expectations.
MRE:
Command:
ruff check --select=PYI
Version: ruff 0.7.0