Skip to content

Add type annotations to source_app #5531

Merged
kushaldas merged 1 commit intofreedomofpress:developfrom
nabla-c0d3:type-annotations-source-app
Oct 14, 2020
Merged

Add type annotations to source_app #5531
kushaldas merged 1 commit intofreedomofpress:developfrom
nabla-c0d3:type-annotations-source-app

Conversation

@nabla-c0d3
Copy link
Contributor

@nabla-c0d3 nabla-c0d3 commented Sep 26, 2020

Status

Ready.

Description of Changes

To help with #4399 , this PR adds and enforces type annotations in the source_app.

@nabla-c0d3 nabla-c0d3 marked this pull request as ready for review September 27, 2020 01:02
@eloquence
Copy link
Contributor

Heads up, needs rebase, note mypy.ini conflict.

@nabla-c0d3 nabla-c0d3 force-pushed the type-annotations-source-app branch from 271de38 to b4cd2dc Compare October 2, 2020 03:29
@nabla-c0d3 nabla-c0d3 force-pushed the type-annotations-source-app branch from b4cd2dc to 61bb8bc Compare October 10, 2020 21:11
Copy link
Contributor

@kushaldas kushaldas left a comment

Choose a reason for hiding this comment

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

Verified the manually, including adding a new function without type annotation.

███ Running mypy type checking...
securedrop/source_app/main.py:347: error: Function is missing a return type annotation
securedrop/source_app/main.py:347: note: Use "-> None" if function does not return a value
Found 1 error in 1 file (checked 105 source files)
make: *** [Makefile:112: typelint] Error 1

This is good, thank you once again 💯

@kushaldas kushaldas merged commit 86e991a into freedomofpress:develop Oct 14, 2020
@nabla-c0d3 nabla-c0d3 deleted the type-annotations-source-app branch October 24, 2020 17:45
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.

3 participants