Judith van Stegeren<p>TIL the overload() decorator for Python, for describing methods that support multiple different combinations of argument types. A great way to make your typechecker happy: it's much stricter and clearer than just combining multiple types with "|". </p><p><a href="https://docs.python.org/3/library/typing.html#typing.overload" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.python.org/3/library/typi</span><span class="invisible">ng.html#typing.overload</span></a></p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://fosstodon.org/tags/types" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>types</span></a> <a href="https://fosstodon.org/tags/typechecking" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>typechecking</span></a> <a href="https://fosstodon.org/tags/pyright" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyright</span></a></p>