Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

google/merge_pyi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is not an official Google product.

Copy type annotations from a PEP484 stub file into python source.

Sample use:

   python merge_pyi.py --pep484 --diff testdata/simple.py testdata/simple.pyi

PyCon 2016 slides

Regression tests

testdata/foo.py  : input we want to annotate
testdata/foo.pyi : type hints we want to add to foo.py (may be intentionally bad)

testdata/foo.comment.py : expected output, inserting types as comments
testdata/foo.pep484.py  : expected output, inserting types in PEP484 style

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages