-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In #6720 adding pyupgrade to CI automatically was deemed infeasible, so we did a one-time pass and left it alone. With ruff it's pretty straightforward so let's turn it on and auto-fix the newly flagged issues. Fixes #6699.
- Loading branch information
Showing
10 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
# type stub for redwood module | ||
# see https://pyo3.rs/v0.16.4/python_typing_hints.html | ||
from pathlib import Path | ||
from typing import List | ||
|
||
def generate_source_key_pair(passphrase: str, email: str) -> (str, str, str): ... | ||
def encrypt_message(recipients: List[str], plaintext: str, destination: Path) -> None: ... | ||
def encrypt_file(recipients: List[str], plaintext: Path, destination: Path) -> None: ... | ||
def encrypt_message(recipients: list[str], plaintext: str, destination: Path) -> None: ... | ||
def encrypt_file(recipients: list[str], plaintext: Path, destination: Path) -> None: ... | ||
def decrypt(ciphertext: bytes, secret_key: str, passphrase: str) -> str: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters