Created
December 6, 2022 17:23
-
-
Save ShahriyarR/ce814aa50bf203a6300217b06367ac6e to your computer and use it in GitHub Desktop.
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
from readonce import ReadOnce | |
from dataclasses import dataclass | |
@dataclass | |
class DBPassword(ReadOnce): | |
password: str | |
def __post_init__(self): | |
# This is going to fail with "AttributeError: 'DBPassword' object has no attribute 'password'" | |
self.add_secret(self.password) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment