enthought / comtypes

A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add inline type annotations to dynamically generated modules

junkmd opened this issue · comments

In #327, we were planning to implement a feature to generate a .pyi file with its type hints as soon as the module is generated by client.GetModule.

However, with a suggestion from @kdschlosser, we shifted to generating modules with inline type annotations.

Inline type annotations are only available in Python 3.x and later, so the merge destination for the contributions is drop_py2 branch.

As planned in #392, we will support Python3.7 and later versions, so type hinting should be done in the way supported from 3.7 and earlier.
For example...

This kanban will be updated as the situation requires.

Any opinions would be appreciated.