metapensiero / metapensiero.pj

Javascript for refined palates: a Python 3 to ES6 Javascript translator
Other
900 stars 73 forks source link

Add support for Python 3 typehints #48

Closed avosirenfal closed 4 years ago

avosirenfal commented 5 years ago

This allows you to use Python 3 typehints (AnnAssign nodes). The transpiler simply ignores the typehints and treats them as if they were normal assignment nodes.

azazel75 commented 5 years ago

@avosirenfal thank you for this, can you please also add a testcase for this?