Skip to content

nesalia-inc/python-typemap

 
 

Repository files navigation

Type Manipulation in Python

This is the development repository for a PEP to add TypeScript-inspired type-level introspection and construction facilities to the Python type system.

There is a rendered PEP draft.

See pep.rst for the PEP draft source code.

This repository also contains an implementation of the proposed additions to typing (typemap/typing.py), as well as a prototype runtime evaluator (typemap/type_eval).

Development

  1. Clone the repo
  2. $ cd typemap
  3. $ uv sync
  4. $ uv run pytest

Running the typechecker

If you have https://github.com/msullivan/mypy/tree/typemap active in a venv, you can run it against at least some of the tests with invocations like: mypy --python-version=3.14 tests/test_qblike_2.py

Not all of them run cleanly yet though.

About

Type Manipulation PEP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.5%
  • Shell 0.5%