-
Notifications
You must be signed in to change notification settings - Fork 38
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
type hints: fix errors and warnings reported by mypy #148
Comments
Awesome to see you working on this! Would highly recommend support Moreover, pyright ships with |
Thanks Martin, I'll take a look! |
Sure thing! If Feel free to ping me if you want help, we've recently migrated a few codebases to |
Thanks @MartinBernstorff, I would definitely appreciate your help in understanding how best to implement this. Any chance we could find a time for a 30min chat? I'll drop you an email! |
I've added pyright to the workflow in the following PR: https://github.com/tompollard/tableone/actions/runs/4852818564/jobs/8648281298. Plan is to fix the issues in a separate branch, so the PR can eventually be merged. |
We are now running type testing with pyright in the github workflow. Many of the errors are currently being ignored, so I have raised a new issue to remind us to address this: #155 |
mypy is a type checker. It can be installed with:
pip install mypy
...and then run with:
mypy tableone/tableone.py
mypy reports the following issues:
Fix these issues!
The text was updated successfully, but these errors were encountered: