[ty] Sync vendored typeshed stubs by github-actions[bot] · Pull Request #20083 · astral-sh/ruff (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More stable than some, because module_type_symbols has no arguments, so there's only ever one instance of that query (thus the 00 part -- there'll never be a 01 etc). But still not very stable, because adding a new query in ty could easily change the 50 part anytime.

I think the best solution here would be to first (with the same db) check some other innocuous file that triggers execution of module_type_symbols, then clear salsa events and check a.py. Then in the checking of a.py we should already have a cached value for module_type_symbols, so it won't iterate a cycle. (There should also of course be a comment explaining why we're doing this.)