docs: Fix failing build

This is failing because the docstring for this attribute that we're
inheriting from sqlalchemy refers to a 'ref' that doesn't exist in our
tree. The solution is to simply override the docstring.

Change-Id: I7210848d45fb8651db63f1be8a194ce0ffc2bfac
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
Stephen Finucane 2021-07-06 16:20:51 +01:00
parent 252733dce7
commit 123691fe53
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,7 @@ class JsonBlob(sql_types.TypeDecorator):
# https://docs.sqlalchemy.org/en/14/core/custom_types.html# \
# sqlalchemy.types.TypeDecorator.cache_ok
cache_ok = True
"""This type is safe to cache."""
def process_bind_param(self, value, dialect):
return jsonutils.dumps(value)
@ -152,6 +153,7 @@ class DateTimeInt(sql_types.TypeDecorator):
# https://docs.sqlalchemy.org/en/14/core/custom_types.html# \
# sqlalchemy.types.TypeDecorator.cache_ok
cache_ok = True
"""This type is safe to cache."""
def process_bind_param(self, value, dialect):
if value is None: