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

Added static typing to pydicer modules #164

Merged
merged 3 commits into from
Feb 2, 2024
Merged

Added static typing to pydicer modules #164

merged 3 commits into from
Feb 2, 2024

Conversation

dalmouiee
Copy link
Member

@dalmouiee dalmouiee commented Feb 2, 2024

Hi @pchlap,

Just thought I'd go ahead and add static typing to all of Pydicer and get back into contributing to the repo :)

Pytest was happy so I assume that the type additions are okay for now, but if anything pops up during real world usage, I'll be happy to fix things in the codebase. Not sure if additional tests will be needed for this static typing, may well be but let me know what you think...

I'll have a look around the issues we've got and get back into the swing of things. If you're happy with the types being added, happy to merge this through. Thanks!

@dalmouiee dalmouiee changed the title WIP: Added static typing to pydicer modules Added static typing to pydicer modules Feb 2, 2024
@dalmouiee dalmouiee requested a review from pchlap February 2, 2024 06:10
@pchlap
Copy link
Contributor

pchlap commented Feb 2, 2024

Thanks a lot @dalmouiee, this is great.

Yeah given that all the tests are passing I don't see any issues here. I don't believe that static types are actually enforced when running Python code. But they will flag when unexpected types are being used by linters, so this will be super useful for anyone who uses PyDicer in their projects.

@pchlap pchlap merged commit 9836a54 into main Feb 2, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants