Other articles


  1. Type annotations in Python 3.7 - 2021 August 31

    Forward type annotations are significantly easier in Python 3.7+ since PEP 563 landed in the language, here's how you can use them.


    read more
  2. Numpy and mypy type checking - 2021 August 11

    Getting numpy to work with mypy requires installing the right package and making a few configuration changes.


    read more
  3. SQLAlchemy and mypy type checking - 2021 August 10

    Getting SQLAlchemy to work with mypy requires installing the right package and making a few configuration changes.


    read more
  4. Beware of Python assertions in production code - 2021 July 18

    Python assertions have a few important downsides that need to be discussed.


    read more
  5. Sentinel objects and mypy type checking - 2021 July 16

    There's a few annoying edge cases with using sentinel objects with mypy. Since I think both sentinel objects are useful and mypy is useful I want to be able to use both.


    read more