Python BytesMichael Kennedy and Calvin Hendryx-ParkerAll episodes
#503 It’s not 85% HTML
Topics covered in this episode:
- Your GitHub language bar is lying (how to fix it)
- Python Typing Survey 2026: developers mix type checkers, and AI is writing the hints
- Flask Vibe - Build Apps You Can Understand
- Python on my wrist: MicroPython on a PineTime
- Extras
- Joke
About the show
Sponsored by us! Support our work through:
- Our courses at Talk Python
- Consulting from Six Feet Up
Connect with the hosts
- Michael: Mastodon / BlueSky / X / LinkedIn
- Calvin: Mastodon / BlueSky / X / LinkedIn
- Show: Mastodon / BlueSky / X
Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesday at 7am PT. Older video versions available there too.
Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.
Michael #1: Your GitHub language bar is lying (how to fix it)
GitHub's language bar comes from Linguist, which counts every tracked byte in the repo. Michael's chameleon-rs project read as 75.5% HTML because committed docs-site output and test suites outweighed the Rust engine. Three .gitattributes attributes changed the story: linguist-generated for build output, linguist-vendored for an upstream test suite, and linguist-detectable=false for tests and benchmarks on both sides. The bar now shows the real mix, roughly 62% Rust and 38% Python.
- That bar is one of the first things people see on your repo; if generated files skew it, a few lines of .gitattributes tell the truth.
- The bar is byte-proportional, so a 9 MB committed docs build can make a Rust project read as mostly HTML
- linguist-generated hides build output and collapses those diffs in pull requests too
- linguist-vendored covers copied-in code; linguist-detectable=false drops anything from the stats
- chameleon-rs went from 75.5% HTML to roughly 62% Rust and 38% Python after a few lines of config
- Tests and benchmarks were excluded symmetrically, on both the Rust and Python sides, so neither skews the ratio
- Check patterns before pushing with git check-attr; GitHub recalculates a few minutes after the push
Calvin #2: Python Typing Survey 2026: developers mix type checkers, and AI is writing the hints
- Meta's 2026 Python Typing Survey results: 1,794 responses, Aug 5 - Sep 2. Pyrefly (Meta), JetBrains, Microsoft and Astral's ty team helped write it.
- Typing is stable: 85.5% use hints often or always (88.0% in 2024). Which checker people use is not stab