@@ -1263,9 +1263,7 @@ def collect_imports_for_column(self, column: Column[Any]) -> None:
1263
1263
try :
1264
1264
python_type = column .type .python_type
1265
1265
except NotImplementedError :
1266
- if column .type .__class__ .__name__ != "UUID" :
1267
- # Workaround for https://github.com/sqlalchemy/sqlalchemy/issues/7943
1268
- self .add_literal_import ("typing" , "Any" )
1266
+ pass
1269
1267
else :
1270
1268
self .add_import (python_type )
1271
1269
@@ -1300,11 +1298,7 @@ def render_column_attribute(self, column_attr: ColumnAttribute) -> str:
1300
1298
try :
1301
1299
python_type = column .type .python_type
1302
1300
except NotImplementedError :
1303
- if column .type .__class__ .__name__ == "UUID" :
1304
- # Workaround for https://github.com/sqlalchemy/sqlalchemy/issues/7943
1305
- python_type_name = "str"
1306
- else :
1307
- python_type_name = "Any"
1301
+ python_type_name = "Any"
1308
1302
else :
1309
1303
python_type_name = python_type .__name__
1310
1304
@@ -1428,10 +1422,7 @@ def render_column_attribute(self, column_attr: ColumnAttribute) -> str:
1428
1422
try :
1429
1423
python_type = column .type .python_type
1430
1424
except NotImplementedError :
1431
- if column .type .__class__ .__name__ == "UUID" :
1432
- python_type_name = "str"
1433
- else :
1434
- python_type_name = "Any"
1425
+ python_type_name = "Any"
1435
1426
else :
1436
1427
python_type_name = python_type .__name__
1437
1428
0 commit comments