File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def import_mssql():
3838class Dialect (BaseDialect ):
3939 name = "MsSQL"
4040 ROUNDS_ON_PREC_LOSS = True
41- SUPPORTS_PRIMARY_KEY = True
41+ SUPPORTS_PRIMARY_KEY : ClassVar [ bool ] = True
4242 SUPPORTS_INDEXES = True
4343 TYPE_CLASSES = {
4444 # Timestamps
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def import_mysql():
4040class Dialect (BaseDialect ):
4141 name = "MySQL"
4242 ROUNDS_ON_PREC_LOSS = True
43- SUPPORTS_PRIMARY_KEY = True
43+ SUPPORTS_PRIMARY_KEY : ClassVar [ bool ] = True
4444 SUPPORTS_INDEXES = True
4545 TYPE_CLASSES = {
4646 # Dates
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class Dialect(
4343 BaseDialect ,
4444):
4545 name = "Oracle"
46- SUPPORTS_PRIMARY_KEY = True
46+ SUPPORTS_PRIMARY_KEY : ClassVar [ bool ] = True
4747 SUPPORTS_INDEXES = True
4848 TYPE_CLASSES : Dict [str , type ] = {
4949 "NUMBER" : Decimal ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def import_postgresql():
4242class PostgresqlDialect (BaseDialect ):
4343 name = "PostgreSQL"
4444 ROUNDS_ON_PREC_LOSS = True
45- SUPPORTS_PRIMARY_KEY = True
45+ SUPPORTS_PRIMARY_KEY : ClassVar [ bool ] = True
4646 SUPPORTS_INDEXES = True
4747
4848 TYPE_CLASSES : ClassVar [Dict [str , Type [ColType ]]] = {
Original file line number Diff line number Diff line change @@ -270,7 +270,9 @@ def test_null_pks(self):
270270 self .assertRaises (ValueError , list , x )
271271
272272
273- @test_each_database_in_list (d for d in TEST_DATABASES if d .dialect .SUPPORTS_PRIMARY_KEY and d .SUPPORTS_UNIQUE_CONSTAINT )
273+ @test_each_database_in_list (
274+ d for d in TEST_DATABASES if d .DIALECT_CLASS .SUPPORTS_PRIMARY_KEY and d .SUPPORTS_UNIQUE_CONSTAINT
275+ )
274276class TestUniqueConstraint (DiffTestCase ):
275277 def setUp (self ):
276278 super ().setUp ()
You can’t perform that action at this time.
0 commit comments