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

Type checking with mypy #726

Merged
merged 25 commits into from
Jun 19, 2023
Merged

Type checking with mypy #726

merged 25 commits into from
Jun 19, 2023

Conversation

carmenbianca
Copy link
Member

I'd been meaning to do this for a while. We have all these type annotations, but don't check whether they're valid.

@carmenbianca
Copy link
Member Author

Almost completed, except for report.py and lint.py. I'll wait on #654 to merge before doing that.

@carmenbianca
Copy link
Member Author

Not almost completed; I disallowed undefined and incomplete function defs, and will need to do some work on that.

Copy link
Member

@nicorikken nicorikken left a comment

Choose a reason for hiding this comment

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

My approval for the current changes, I reviewed all code changes. Thanks, great work!
Besides adding typing, I noticed a couple of improvements in logic, variables and handling like handling copyright statements. In the future perhaps specific types can be used for copyright statements and years as not to rely on str. I learned a couple of new constructs.

@carmenbianca
Copy link
Member Author

Rebased this on top of #759

Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
@carmenbianca carmenbianca marked this pull request as ready for review June 19, 2023 08:19
@carmenbianca carmenbianca merged commit 970e22f into fsfe:main Jun 19, 2023
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