-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Consider adding types via mypy #2722
Comments
I'd be really happy to have this! I think there are a couple extremely disparate places with type annotations already. |
Does anybody already happen to be working on this? Otherwise I'd be happy to have a look at it to see if I can help get this started. |
As far as I know, nobody is currently working on this. Go for it! |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I find that Python is significantly easier to write and maintain when it's statically typed via mypy. It's fairly easy to add types incrementally. Here's a good post on how Zulip started using it (also a Django project, albeit larger than Bookwyrm) talking about benefits and approaches to migrating.
The steps for this would probably look like:
# type: ignore
where neededI'd be happy to drive this if it's something people are open to.
The text was updated successfully, but these errors were encountered: