Flesh out the email implementation

This commit is contained in:
Campbell Alden 2026-08-01 01:07:58 +09:00
parent c1a61730d5
commit cee708f4d8
4 changed files with 29 additions and 10 deletions

0
src/utils/__init__.py Normal file
View file

14
src/utils/secret.py Normal file
View file

@ -0,0 +1,14 @@
class SecretBox[T]:
"""A helper abstraction for making sure secrets aren't leaked accidentally"""
def __init__(self, item: T):
self._item = item
def expose_secret(self) -> T:
return self._item
def __str__(self):
return '<SECRET>'
def __repr__(self):
return f'SecretBox<{type(self._item)}>'