HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.21k stars 658 forks source link

Using Haxe, how can I generate python code with type hints? #11407

Closed nhan2ca closed 1 year ago

nhan2ca commented 1 year ago

I want to write a cross-platform library with Haxe. But when I compile Haxe to Python, there is no type hint in Python code. Although I have placed type hints in the haxe code, my python code after being generated does not have them.

How to let Haxe generate type hints to Python code? This helps users use my library more conveniently.

Simn commented 1 year ago

This isn't possible, and it's unlikely that this will be added to the python target.