Skip to content

Commit

Permalink
Stubgen improvements: preserving existing annotations (#3169)
Browse files Browse the repository at this point in the history
This PR modifies heavily the stubgen to be able to create better stubs
when processing already annotated files (Implements #2106 ).
It essentially adds annotations on the stubs for:

* Variables/attributes with annotations
* Annotations on functions/methods
* TypeVar declarations
* Type Aliases

It also adds some fixes (handling of generics as base classes,
some formatting fixes in the output) that were natural consequences
of some of the refactoring I made.
  • Loading branch information
dmoisset authored and ilevkivskyi committed Sep 22, 2017
1 parent 8b43e15 commit 4fc4ae2
Show file tree
Hide file tree
Showing 2 changed files with 523 additions and 102 deletions.
Loading

0 comments on commit 4fc4ae2

Please sign in to comment.