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

Update syntax for type annotations #5283

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

pierwill
Copy link
Contributor

@pierwill pierwill commented May 29, 2020

Status

Ready for review

Description of Changes

Use PEP484 syntax in ./securedrop/rm.py.

Work toward #5282.

Testing

  • make typelint exits zero

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.

Because of flake8

securedrop/rm.py Outdated
@@ -22,8 +22,7 @@
import subprocess


def shred(path, delete=True):
# type: (str, bool) -> None
def shred(path: str, delete: bool=True) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be

def shred(path: str, delete: bool = True) -> None:

@pierwill pierwill force-pushed the pierwill-type-syntax-1 branch from 774a619 to 310a8ba Compare June 1, 2020 20:39
@pierwill
Copy link
Contributor Author

pierwill commented Jun 1, 2020

Thanks! Force-pushed that change—

kushaldas
kushaldas previously approved these changes Jun 2, 2020
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.

This is now good. Approved 🦄 . Thank you @pierwill

@kushaldas
Copy link
Contributor

We will have to rebase after #5286 is merged.

@rmol
Copy link
Contributor

rmol commented Jun 3, 2020

This likely just needs one more rebase, because of the Tor browser update.

Use PEP484 syntax in ./securedrop/rm.py
@pierwill pierwill force-pushed the pierwill-type-syntax-1 branch from 569851a to 4f8abad Compare June 3, 2020 17:23
@pierwill
Copy link
Contributor Author

pierwill commented Jun 3, 2020

Rebased and force pushed—

@kushaldas
Copy link
Contributor

@pierwill let CI get done, I will re-review formally and merge. Thank you once again :)

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.

Re-stamping the PR so that we can merge after CI is green.

@rmol rmol merged commit 1e39cd2 into freedomofpress:develop Jun 3, 2020
@pierwill pierwill deleted the pierwill-type-syntax-1 branch June 7, 2020 20:57
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