From e49bcd368d1f71dba92225d8d6e3af2bbe7142f7 Mon Sep 17 00:00:00 2001 From: jason3gb Date: Tue, 22 Jun 2021 01:08:50 +0800 Subject: [PATCH] format doc --- doc/build/changelog/unreleased_14/6646.rst | 2 +- lib/sqlalchemy/sql/sqltypes.py | 5 +++-- test/sql/test_types.py | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/build/changelog/unreleased_14/6646.rst b/doc/build/changelog/unreleased_14/6646.rst index 76d4aade3e..c10a12e0ff 100644 --- a/doc/build/changelog/unreleased_14/6646.rst +++ b/doc/build/changelog/unreleased_14/6646.rst @@ -1,5 +1,5 @@ .. change:: - :tags: usecase, type + :tags: usecase, sql :tickets: 6646 Add a impl parameter to :class:`.PickleType` constructor, so the user diff --git a/lib/sqlalchemy/sql/sqltypes.py b/lib/sqlalchemy/sql/sqltypes.py index b700445f39..ef0944c99e 100644 --- a/lib/sqlalchemy/sql/sqltypes.py +++ b/lib/sqlalchemy/sql/sqltypes.py @@ -1803,9 +1803,10 @@ class PickleType(TypeDecorator): the Python "equals" operator is used to compare values. :param impl: Any implementation class that support storing - binary object. (e.g. :class: `.mysql.LONGBLOB`). - If let as ``None``, the impl would use class's default impl + binary object. (e.g. :class: `_mysql.LONGBLOB`). + If left as ``None``, the impl would use class's default impl `:class:`.LargeBinary` + .. versionadded:: 1.4.20 """ self.protocol = protocol diff --git a/test/sql/test_types.py b/test/sql/test_types.py index 942c0c5874..4b5f74488a 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -3810,6 +3810,8 @@ class PickleTest(fixtures.TestBase): assert p1.compare_values(p1.copy_value(obj), obj) def test_customized_impl(self): + """test #6646""" + p1 = PickleType() assert isinstance(p1.impl, LargeBinary) -- 2.47.2