From 274d1fe53b34f2d68bf4f3c966e2c94fe41fdd05 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Thu, 30 Sep 2021 19:02:23 -0400 Subject: [PATCH] Update quotes in password-hashing example --- examples/miniapps/password-hashing/example.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/miniapps/password-hashing/example.py b/examples/miniapps/password-hashing/example.py index e9d042b9..c4d6d239 100644 --- a/examples/miniapps/password-hashing/example.py +++ b/examples/miniapps/password-hashing/example.py @@ -15,8 +15,8 @@ class UserService: def create_user(self, name: str, password: str) -> Dict[str, str]: hashed_password = self._password_hasher(password) return { - 'name': name, - 'password': hashed_password, + "name": name, + "password": hashed_password, } @@ -36,15 +36,15 @@ class Container(containers.DeclarativeContainer): ) -if __name__ == '__main__': +if __name__ == "__main__": container = Container( config={ - 'salt_size': 16, - 'rounds': 10000, + "salt_size": 16, + "rounds": 10000, }, ) user_service = container.user_service() - user = user_service.create_user(name='Roman', password='secret1') + user = user_service.create_user(name="Roman", password="secret1") print(user)