From: zeeeeeb <5767468+zeeeeeb@users.noreply.github.com> Date: Thu, 10 Feb 2022 06:27:27 +0000 (-0800) Subject: fixing lint errors X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42034f3ce4db5e4a643d40c23138a586ccbcdb4b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fixing lint errors --- diff --git a/lib/sqlalchemy/dialects/mssql/base.py b/lib/sqlalchemy/dialects/mssql/base.py index 30976e2ce7..2aff7d8b6d 100644 --- a/lib/sqlalchemy/dialects/mssql/base.py +++ b/lib/sqlalchemy/dialects/mssql/base.py @@ -1488,7 +1488,6 @@ class MSTypeCompiler(compiler.GenericTypeCompiler): else: return "FLOAT(%(precision)s)" % {"precision": precision} - def visit_TINYINT(self, type_, **kw): return "TINYINT" diff --git a/test/dialect/postgresql/test_compiler.py b/test/dialect/postgresql/test_compiler.py index 006a5c1856..98b974ea53 100644 --- a/test/dialect/postgresql/test_compiler.py +++ b/test/dialect/postgresql/test_compiler.py @@ -252,8 +252,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): stmt = select(cast(column("foo"), d1)) self.assert_compile( - stmt, - "SELECT CAST(foo AS DOUBLE PRECISION) AS foo" + stmt, "SELECT CAST(foo AS DOUBLE PRECISION) AS foo" ) def test_cast_enum_schema_translate(self):