From: Mike Bayer Date: Tue, 17 Dec 2013 22:56:03 +0000 (-0500) Subject: - remove very ancient TypeEngine constructor, not used by anything X-Git-Tag: rel_0_9_0~21^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be06bcf3b94f186f9b6178f7c6a3965548aa2d38;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - remove very ancient TypeEngine constructor, not used by anything --- 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):