From: Mike Bayer Date: Tue, 6 Feb 2024 19:11:05 +0000 (-0500) Subject: remove unneeded constructors for Unicode, UnicodeText X-Git-Tag: rel_2_0_26~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d85d7a736c155ba5647e0025904b908a8122fe88;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git remove unneeded constructors for Unicode, UnicodeText References: https://github.com/sqlalchemy/sqlalchemy/pull/10970 Change-Id: I59461bcd6359314c0c0a99923da5e3f3d3ddbfff (cherry picked from commit 2202fa4c1318c5342625159e035793cb11fa50bb) --- diff --git a/lib/sqlalchemy/sql/sqltypes.py b/lib/sqlalchemy/sql/sqltypes.py index 764f9a382e..fa4c7827fc 100644 --- a/lib/sqlalchemy/sql/sqltypes.py +++ b/lib/sqlalchemy/sql/sqltypes.py @@ -306,15 +306,6 @@ class Unicode(String): __visit_name__ = "unicode" - def __init__(self, length=None, **kwargs): - """ - Create a :class:`.Unicode` object. - - Parameters are the same as that of :class:`.String`. - - """ - super().__init__(length=length, **kwargs) - class UnicodeText(Text): """An unbounded-length Unicode string type. @@ -330,15 +321,6 @@ class UnicodeText(Text): __visit_name__ = "unicode_text" - def __init__(self, length=None, **kwargs): - """ - Create a Unicode-converting Text type. - - Parameters are the same as that of :class:`_expression.TextClause`. - - """ - super().__init__(length=length, **kwargs) - class Integer(HasExpressionLookup, TypeEngine[int]): """A type for ``int`` integers."""