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 typing import Any | |
from typing import Optional | |
import sqlalchemy.types as types | |
from flask_sqlalchemy import SQLAlchemy | |
class ObfuscatedString(types.TypeDecorator): | |
""" | |
String column type for use with SQLAlchemy models whose | |
content should not appear in logs or exceptions |