]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Support compilation with mypyc (#1009)
authorMichael J. Sullivan <sully@msully.net>
Wed, 30 Oct 2019 14:29:29 +0000 (07:29 -0700)
committerJelle Zijlstra <jelle.zijlstra@gmail.com>
Wed, 30 Oct 2019 14:29:29 +0000 (07:29 -0700)
commit3e60f6d454616a795acb1e3e2b43efa979de4f46
tree76af05765cc6d60764307776b4493642264b4064
parent12826f3c1e2ad75051d52cd2a81718a0349cc3db
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: Sanjit Kalapatapu <sanjitkal@gmail.com>
Co-authored-by: Michael 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: Sanjit Kalapatapu <sanjitkal@gmail.com>
Co-authored-by: Michael J. Sullivan <sully@msully.net>
30 files changed:
.appveyor.yml
.flake8
.gitignore
Pipfile
Pipfile.lock
black.py
blib2to3/__init__.pyi [deleted file]
blib2to3/pgen2/__init__.pyi [deleted file]
blib2to3/pgen2/conv.py
blib2to3/pgen2/driver.py
blib2to3/pgen2/driver.pyi [deleted file]
blib2to3/pgen2/grammar.py
blib2to3/pgen2/grammar.pyi [deleted file]
blib2to3/pgen2/literals.py
blib2to3/pgen2/literals.pyi [deleted file]
blib2to3/pgen2/parse.py
blib2to3/pgen2/parse.pyi [deleted file]
blib2to3/pgen2/pgen.py
blib2to3/pgen2/pgen.pyi [deleted file]
blib2to3/pgen2/token.py
blib2to3/pgen2/token.pyi [deleted file]
blib2to3/pgen2/tokenize.py
blib2to3/pgen2/tokenize.pyi [deleted file]
blib2to3/pygram.py
blib2to3/pygram.pyi [deleted file]
blib2to3/pytree.py
blib2to3/pytree.pyi [deleted file]
mypy.ini
setup.py
tests/test_black.py