@@ -179,7 +179,7 @@ def prepare_table( # type: ignore[override] # noqa: PLR0913
179
179
] # So we don't mess up the casing of the Table reference
180
180
181
181
columns = self .get_table_columns (
182
- schema_name = cast (str , schema_name ),
182
+ schema_name = cast (" str" , schema_name ),
183
183
table_name = table_name ,
184
184
connection = connection ,
185
185
)
@@ -509,13 +509,13 @@ def prepare_column(
509
509
table_name = table_name ,
510
510
column_name = column_name ,
511
511
sql_type = sql_type ,
512
- schema_name = cast (str , schema_name ),
512
+ schema_name = cast (" str" , schema_name ),
513
513
connection = connection ,
514
514
)
515
515
return
516
516
517
517
self ._adapt_column_type (
518
- schema_name = cast (str , schema_name ),
518
+ schema_name = cast (" str" , schema_name ),
519
519
table_name = table_name ,
520
520
column_name = column_name ,
521
521
sql_type = sql_type ,
@@ -612,7 +612,7 @@ def _adapt_column_type( # type: ignore[override] # noqa: PLR0913
612
612
"""
613
613
current_type : sa .types .TypeEngine
614
614
if column_object is not None :
615
- current_type = t .cast (sa .types .TypeEngine , column_object .type )
615
+ current_type = t .cast (" sa.types.TypeEngine" , column_object .type )
616
616
else :
617
617
current_type = self ._get_column_type (
618
618
schema_name = schema_name ,
@@ -699,7 +699,7 @@ def get_sqlalchemy_url(self, config: dict) -> str:
699
699
config: The configuration for the connector.
700
700
"""
701
701
if config .get ("sqlalchemy_url" ):
702
- return cast (str , config ["sqlalchemy_url" ])
702
+ return cast (" str" , config ["sqlalchemy_url" ])
703
703
704
704
sqlalchemy_url = URL .create (
705
705
drivername = config ["dialect+driver" ],
@@ -710,7 +710,7 @@ def get_sqlalchemy_url(self, config: dict) -> str:
710
710
database = config ["database" ],
711
711
query = self .get_sqlalchemy_query (config ),
712
712
)
713
- return cast (str , sqlalchemy_url )
713
+ return cast (" str" , sqlalchemy_url )
714
714
715
715
def get_sqlalchemy_query (self , config : dict ) -> dict :
716
716
"""Get query values to be used for sqlalchemy URL creation.
@@ -857,7 +857,7 @@ def _get_column_type( # type: ignore[override]
857
857
)
858
858
raise KeyError (msg ) from ex
859
859
860
- return t .cast (sa .types .TypeEngine , column .type )
860
+ return t .cast (" sa.types.TypeEngine" , column .type )
861
861
862
862
def get_table_columns ( # type: ignore[override]
863
863
self ,
0 commit comments