-
Notifications
You must be signed in to change notification settings - Fork 688
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
Conversation
There was a problem hiding this 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: |
There was a problem hiding this comment.
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:
774a619
to
310a8ba
Compare
Thanks! Force-pushed that change— |
There was a problem hiding this 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
We will have to rebase after #5286 is merged. |
310a8ba
to
569851a
Compare
This likely just needs one more rebase, because of the Tor browser update. |
Use PEP484 syntax in ./securedrop/rm.py
569851a
to
4f8abad
Compare
Rebased and force pushed— |
@pierwill let CI get done, I will re-review formally and merge. Thank you once again :) |
There was a problem hiding this 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.
Status
Ready for review
Description of Changes
Use PEP484 syntax in ./securedrop/rm.py.
Work toward #5282.
Testing
make typelint
exits zero