[Q] `py.typed` and `.typesafe`

This page summarizes the projects mentioned and recommended in the original post on /r/learnpython

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • gluonts

    Probabilistic time series modeling in Python

  • I was looking at [`gluonts`](https://github.com/awslabs/gluonts/tree/dev/src/gluonts/core) source code and I found a `py.typed` file. That is something I always put in my type-annotated modules: it's literally an empty file which denotes that the module is marked for "internal or external use in type checking" [mypy docs](https://mypy.readthedocs.io/en/stable/installed_packages.html?highlight=py.typed#creating-pep-561-compatible-packages). However, I never saw before the `.typesafe` file. What does it denote? Does it have to be used alongside a `py.typed`?

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts