<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Mypy - Tag - vo.rs</title><link>https://vo.rs/tags/mypy/</link><description>Mypy - Tag - vo.rs</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Tue, 12 Sep 2023 09:00:00 +0000</lastBuildDate><atom:link href="https://vo.rs/tags/mypy/" rel="self" type="application/rss+xml"/><item><title>Python Type Hints: Writing Python Like You Mean It</title><link>https://vo.rs/story/python-type-hints-writing-python-like-you-mean-it/</link><description>&lt;p&gt;Python&amp;rsquo;s great selling point is that you can write a function in ten seconds without telling the interpreter anything about what goes in or comes out. Its great curse is that six months later you are staring at that same function trying to remember whether &lt;code&gt;data&lt;/code&gt; is a list, a dict, or a generator that has already been consumed. Type hints are Python&amp;rsquo;s answer to its own success: a way of writing down what you meant, so that your tools, your colleagues, and your future self can hold you to it. I have watched them turn a genuinely scary refactor of a forty-file service into an afternoon of following red underlines, and that experience converted me for good.&lt;/p&gt;</description><pubDate>Tue, 12 Sep 2023 09:00:00 +0000</pubDate></item></channel></rss>