Embedded Python Console: how to add type support for existing typings?

I am the author of:

I has come to my attention that there is some interest in creating a custom LibreOffice
embedded python console that supports these typing libraries.

This should increase productivity considerably when writing/editing python macros.

There is a PyCon talk on YouTube Building a Python Code Completer
I am not sure if this is the best approach or even if this is possible in an embedded console.

Does anyone know how support for typing could be built into an Embedded python console?