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

Enable mypy #153

Merged
merged 8 commits into from
Dec 7, 2022
Merged

Enable mypy #153

merged 8 commits into from
Dec 7, 2022

Conversation

odashi
Copy link
Collaborator

@odashi odashi commented Dec 6, 2022

Overview

Introduces mypy as a new CI. Also fixes several typing errors discovered by the non-strict mode of mypy.

This change removes the deprecated with_latex, which is no longer useful to support (especially with correct type hints).

References

NA

Blocked by

@odashi odashi added this to the v0.3 milestone Dec 6, 2022
@odashi odashi requested a review from ShigekiKarita December 6, 2022 22:15
@odashi
Copy link
Collaborator Author

odashi commented Dec 7, 2022

CI is still failing, will fix it

Copy link
Collaborator

@ShigekiKarita ShigekiKarita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice. For my education, is there any reason why you choose mypy rather than pytype, pyright?

@odashi
Copy link
Collaborator Author

odashi commented Dec 7, 2022

It is because mypy is provided by the official, and has more audience than others. Other tools are also good though; so this is just kinda bike-shedding decision.

@odashi odashi merged commit 693d825 into main Dec 7, 2022
@odashi odashi deleted the mypy branch December 7, 2022 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants