Python runtime type checking

Similarly to my python colors that you can just copy and use, my arsenal of do it yourselfs has grown by a typechecking function wrapper. I'd normally say it's not necessary, since if you're serious and using python specifically, static type checking should be enough, but I've recently had to do it without external libraries in many places, and repeating myself many times sounded too annoying. If you ever find yourself in such a place too, here's the code (requires python >= 3.8): ...

April 19, 2026 · 1 min · Nevalicjus