-
Notifications
You must be signed in to change notification settings - Fork 22
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
add type hints and static type checking #76
Conversation
@torbennehmer would you mind trying this PR out? |
@vchrisb Of course, will do, but it'll probably take until Sunday to get around to it. |
@vchrisb I came around to give this a try, most things work, however there are at least to places, where I've got regressions. I didn't have time to analyse it deeper (I'm preparing for a business-trip, a large software rollout next week). I can look deeper into it if you need it (just say) afterwards. The problems I saw:
The standard branch returns an empty list here ( Similarily, this fails too:
The standard code lists this:
I have not yet tested (e.g. directly called):
In addition:
The two known bugs above are no direct problem, as soon as I give my local test environment another run, I'll use your branch for further tests. |
Thank you for your effort. I missed testing |
Hi @vchrisb, Also as a further successful test, |
@torbennehmer , @eikowagenknecht and @bullitt186 would you mind trying this PR? 🥇
|
running mypy against it shows some more typing issues:
I only checked some of those, but they were valid. |
I would be interested, if there is any change in behavior of the API compared to latest release of pye3dc with your E3DC. |
Yeah, I was thinking maybe mypy would catch some extra issues like it's done before in other projects. But sticking with pyright's feedback for now is of course a valid choice.
A quick run of tests.py and diff against master looked good, no changes to see. |
Will do, but probably not before the start of next week, unfortunately it's rather hectic here at the moment. |
I did manual back-to-back testing of all the |
I did clean the commit history |
2831dc2
to
ec26f77
Compare
Type hinting is now available in all supported Python versions.
This should help further improve code quality and make it more readable