typing: short-term mypy fix for `open`
typing: short-term mypy fix for `open`

mypy currently has some difficulties inferring types with ``open``.

ariddell/httpstan,ariddell/httpstan,ariddell/httpstan,ariddell/httpstan,ariddell/httpstan,ariddell/httpstan,ariddell/httpstan,ariddell/httpstan