Type Hinting - Constrain metaclass of typing.Type

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

Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
featured
InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
  • mypy

    Optional static typing for Python

    Been looking into it a bit more. I think you're right, it's not supported. Turns out mypy only has very limited support for type hinting metaclasses. This page suggests it may be possible to support this with a mypy plugin, but I'm really not looking to do something that involved. Just wanting to hint an existing API :/ I suppose I could look into tweaking the API to be more hint-able, but I think I'll just accept this piece isn't perfect.

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • typing

    Python static typing home. Hosts the documentation and a user help forum.

    but looking at relevant issues on GitHub it seems this has been shot down repeatedly. python/typing#18, python/typing#213

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

  • Duck Typing Meets Type Hints: Using Protocols in Python

    1 project | dev.to | 30 Jul 2024
  • Static Typing for Python

    1 project | news.ycombinator.com | 27 Jan 2024
  • WeveAllBeenThere

    1 project | /r/ProgrammerHumor | 7 Dec 2023
  • Extend Python VENV: Organize Dependencies Your Way

    2 projects | dev.to | 11 May 2023
  • Python interfaces with Protocols: time to ditch ABC?

    1 project | dev.to | 31 Jan 2023