Created
December 6, 2022 19:44
-
-
Save ShahriyarR/76da82dd536926c9671de881d244fdf1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@icontract.invariant( | |
lambda self: len(self) == 0 or len(self) == 1, | |
"There can be no or only single secret data stored", | |
) | |
class ReadOnce(metaclass=Final): | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment