Python Bytes

#464 Malicious Package? No Build For You!

14 snips
Jan 5, 2026
Discover the exciting beta release of ty, an ultra-fast Python type checker that offers incremental checks and VSCode integration. The hosts delve into Python supply chain security, highlighting risks like typosquatting and the importance of tools like pip-audit. Learn how MI6 is pushing for Python fluency among agents, equating it to language skills. Plus, tips on using typing_extensions for older Python versions and personal updates about writing and gadgets round off the discussion!
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
INSIGHT

Ty: Blazingly Fast Incremental Type Checking

  • Ty is an extremely fast, incremental Python type checker and LSP that runs near-instantly even on first run.
  • Its incremental rechecks make editor and CI integrations practical for live, repeated type validation.
ADVICE

Audit Dependencies And Delay New Upgrades

  • Use pip-audit to test installed dependencies and fail CI if vulnerabilities appear by adding a pytest that runs pip-audit.
  • Delay automatic dependency upgrades (e.g., exclude releases newer than one week) to let others find problematic releases first.
ADVICE

Isolate Dependency Tests In Docker Builds

  • Run dependency installs and pip-audit inside an isolated Docker build to detect malicious packages before they touch your machine.
  • Fail Docker builds when pip-audit flags vulnerabilities so unsafe images never get produced.
Get the Snipd Podcast app to discover more snips from this episode
Get the app