From be06bcf3b94f186f9b6178f7c6a3965548aa2d38 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 17 Dec 2013 17:56:03 -0500 Subject: [PATCH] - remove very ancient TypeEngine constructor, not used by anything --- lib/sqlalchemy/sql/type_api.py | 6 ------ test/sql/test_types.py | 8 -------- 2 files changed, 14 deletions(-) diff --git a/lib/sqlalchemy/sql/type_api.py b/lib/sqlalchemy/sql/type_api.py index 12babd2c25..9e477ba6fe 100644 --- a/lib/sqlalchemy/sql/type_api.py +++ b/lib/sqlalchemy/sql/type_api.py @@ -403,12 +403,6 @@ class TypeEngine(Visitable): else: return str(self.compile()) - def __init__(self, *args, **kwargs): - """Support implementations that were passing arguments""" - if args or kwargs: - util.warn_deprecated("Passing arguments to type object " - "constructor %s is deprecated" % self.__class__) - def __repr__(self): return util.generic_repr(self) diff --git a/test/sql/test_types.py b/test/sql/test_types.py index 09176c0003..a422ace615 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -167,14 +167,6 @@ class AdaptTest(fixtures.TestBase): t1 = typ() repr(t1) - def test_plain_init_deprecation_warning(self): - for typ in (Integer, Date, SmallInteger): - assert_raises_message( - exc.SADeprecationWarning, - "Passing arguments to type object " - "constructor %s is deprecated" % typ, - typ, 11 - ) class TypeAffinityTest(fixtures.TestBase): def test_type_affinity(self): -- 2.47.3