Suppress type errors for Pyrefly upgrade (landing group 66)
Summary: This Phabricator Diff was generated from Pyrefly type-checker output by the per-target upgrade tool. It was not generated by an AI coding system.
It adds only
# pyrefly: ignore[...]comments for type errors reported by the upcoming Pyrefly version. It does not change Python runtime behavior or application logic.If this diff does not land before the Pyrefly upgrade, the associated type-checking tests will fail.
Landing group:
b4af87ee042beffcc15cbf2933602f5328d838a02305c7d2ff14b7c64309b590(attempt 1, 20 batches, 91 files) Merged patch SHA-256:ff1a460bf1d1ba313d472338a39c85e14cbe922403b4edd224ba540b1475ee00pyreupgrade
Reviewed By: maggiemoss
Differential Revision: D128463679
fbshipit-source-id: 120466f6c0cc126adfd5b4f77fad9a10f77dd873
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Pysa is a security-focused static analysis tool for Python that tracks data flows to find security and privacy issues — for example, user-controlled input reaching a dangerous sink such as remote code execution or SQL injection. Pysa can analyze codebases with millions of lines of code. Refer to our documentation to get started.
Pysa relies on type information from Pyrefly, Meta’s performant Python type checker.
Pysa is also available on the GitHub Marketplace as a GitHub Action.
Installation
Pysa requires Python 3.9 or later. Install it with pip:
Pysa is currently distributed as part of the
pyre-checkpackage, since it was historically bundled with Pyre, Meta’s (deprecated) type checker. In the future, Pysa will ship as its own PyPI package.Running Pysa
Pysa relies on type information from Pyrefly. Before running Pysa, make sure Pyrefly can successfully check your code:
Once Pyrefly runs cleanly, run Pysa from your project directory to find security and privacy issues:
Pysa uses models to identify sources of taint (where untrusted data enters) and sinks (dangerous operations). For details on configuring Pysa, writing models, and interpreting results, see the Pysa documentation.
Join the Pysa community
See CONTRIBUTING.md for how to help out.
License
Pysa is licensed under the MIT license.