netius icon indicating copy to clipboard operation
netius copied to clipboard

Python type stub files 📜

Open joamag opened this issue 2 years ago • 2 comments

Description

With Python 3.6+, there's been primitive support for type hinting. We want to be able to offer this richer type of support through the usage of type hinting.

Implementation

Make use of type stubs to add types to the major entry point functions/methods.

There's already some work done https://github.com/hivesolutions/netius/commit/d0cc0f49d65311e86cd44275021c24f8308e188d.

joamag avatar Sep 19 '23 08:09 joamag

@joamag just a quick thought - have you had a chance to try out stubgen from MyPy, or perhaps pyright --createstub, for kickstarting the .pyi file creation?

hugo-gomes avatar Dec 05 '23 12:12 hugo-gomes

@hugo-gomes interesting, let's run that over part of the codebase and check the quality of the results - it could be a very good starting point

joamag avatar Dec 06 '23 09:12 joamag