Python compatibility checks
Python compatibility checks
Posted May 11, 2025 23:12 UTC (Sun) by geofft (subscriber, #59789)In reply to: Complex and bloated by khim
Parent article: A kernel developer plays with Home Assistant: general impressions
> For C we have LibAbiGail. For Rust we have Cargo Semver Checks, Crater and many other things⦠what do we have for Python? Wishful thinking and prayers?
Now that Python has grown type support, something like https://mypy.readthedocs.io/en/stable/stubtest.html would be a good way to do the sort of thing libabigail does to check that a new version of a package exposes the same interface as previous versions. (Of course, in both cases, whether it has the same semantics is a different question, but there are a wide variety of tools for writing tests, and no real substitutes to doing so.)