Skip to content
Commit 3e60f6d4 authored by Michael J. Sullivan's avatar Michael J. Sullivan Committed by Jelle Zijlstra
Browse files

Support compilation with mypyc (#1009)



* Make most of blib2to3 directly typed and mypyc-compatible

This used a combination of retype and pytype's merge-pyi to do the
initial merges of the stubs, which then required manual tweaking to
make actually typecheck and work with mypyc.

Co-authored-by: default avatarSanjit Kalapatapu <sanjitkal@gmail.com>
Co-authored-by: default avatarMichael J. Sullivan <sully@msully.net>

* Make black able to compile and run with mypyc

The changes made fall into a couple categories:
 * Fixing actual type mistakes that slip through the cracks
 * Working around a couple mypy bugs (the most annoying of which being
   that we need to add type annotations in a number of places where
   variables are initialized to None)

Co-authored-by: default avatarSanjit Kalapatapu <sanjitkal@gmail.com>
Co-authored-by: default avatarMichael J. Sullivan <sully@msully.net>
parent 12826f3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment