Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Disallow untyped defs in synapse._scripts #12422

Merged
merged 13 commits into from
Apr 11, 2022
Prev Previous commit
Next Next commit
no untyped defs in hash_password
  • Loading branch information
David Robertson committed Apr 8, 2022
commit cb135afec0419c195fe5038f872457b0c5155110
4 changes: 2 additions & 2 deletions synapse/_scripts/hash_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import yaml


def prompt_for_pass():
def prompt_for_pass() -> str:
password = getpass.getpass("Password: ")

if not password:
Expand All @@ -23,7 +23,7 @@ def prompt_for_pass():
return password


def main():
def main() -> None:
bcrypt_rounds = 12
password_pepper = ""

Expand Down