]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove unneeded constructors for Unicode, UnicodeText
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Feb 2024 19:11:05 +0000 (14:11 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Feb 2024 19:11:05 +0000 (14:11 -0500)
References: https://github.com/sqlalchemy/sqlalchemy/pull/10970
Change-Id: I59461bcd6359314c0c0a99923da5e3f3d3ddbfff

lib/sqlalchemy/sql/sqltypes.py

index 5a8c86b16655d24b1df38fe0c8a3d65258e797e9..a608ea40467be1ae304e94b49d37acd42574c677 100644 (file)
@@ -307,15 +307,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.
@@ -331,15 +322,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."""