aliles / funcsigs

Python function signatures package for Python 2.6, 2.7 and 3.2+
http://pypi.python.org/pypi/funcsigs
Other
48 stars 33 forks source link

fix annotation formatting for builtin types in Python 2.x #1

Closed agoraplex closed 11 years ago

tripplilley commented 11 years ago

funcsigs.formatannotation strips the module name from builtin types in Python 3, but not in Python 2.x, since it's looking for builtins, not __builtin__. This adds proper support (and unit tests) for Python 2.x.