Skip to content

Commit 274d1fe

Browse files
committed
Update quotes in password-hashing example
1 parent 8bea62e commit 274d1fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: examples/miniapps/password-hashing/example.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def __init__(self, password_hasher: Callable[[str], str]) -> None:
1515
def create_user(self, name: str, password: str) -> Dict[str, str]:
1616
hashed_password = self._password_hasher(password)
1717
return {
18-
'name': name,
19-
'password': hashed_password,
18+
"name": name,
19+
"password": hashed_password,
2020
}
2121

2222

@@ -36,15 +36,15 @@ class Container(containers.DeclarativeContainer):
3636
)
3737

3838

39-
if __name__ == '__main__':
39+
if __name__ == "__main__":
4040
container = Container(
4141
config={
42-
'salt_size': 16,
43-
'rounds': 10000,
42+
"salt_size": 16,
43+
"rounds": 10000,
4444
},
4545
)
4646

4747
user_service = container.user_service()
4848

49-
user = user_service.create_user(name='Roman', password='secret1')
49+
user = user_service.create_user(name="Roman", password="secret1")
5050
print(user)

0 commit comments

Comments
 (0)