Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Wish: add typing information #37

Open
9y2070m opened this issue May 11, 2023 · 2 comments
Open

Feature Wish: add typing information #37

9y2070m opened this issue May 11, 2023 · 2 comments

Comments

@9y2070m
Copy link

9y2070m commented May 11, 2023

Hi there,

I love your package to get existing .NET dlls into my python code.
It would be great if there is a possibility to add type hints to your package.
https://peps.python.org/pep-0484/

Thanks and BR
Thomas

@jborbely
Copy link
Contributor

Certainly (and this has been something to do for a while).

The issue right now is that msl-loadlib still supports Python 2.7 and the Suggested syntax for Python 2.7 and straddling code is a bit annoying and I haven't been sure on how many type checkers and IDE's would properly support a # type: comment anymore.

Supporting EOL Python versions is also getting increasingly more difficult for CI tools as well.

Ideally what should be done is release a version that still supports 2.7 and 3.5+, then only support 3.8+ and implement more modern builtin features (such as typing), remove 2.7 and 3.x compatibility code and then release another version (perhaps nothing new code wise -- just cleaner, more user friendly and easier to maintain).

@9y2070m
Copy link
Author

9y2070m commented May 12, 2023

I am not that experienced but I can try to offer you some support 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants