@@ -1263,9 +1263,7 @@ def collect_imports_for_column(self, column: Column[Any]) -> None:
12631263 try :
12641264 python_type = column .type .python_type
12651265 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
12691267 else :
12701268 self .add_import (python_type )
12711269
@@ -1300,11 +1298,7 @@ def render_column_attribute(self, column_attr: ColumnAttribute) -> str:
13001298 try :
13011299 python_type = column .type .python_type
13021300 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"
13081302 else :
13091303 python_type_name = python_type .__name__
13101304
@@ -1428,10 +1422,7 @@ def render_column_attribute(self, column_attr: ColumnAttribute) -> str:
14281422 try :
14291423 python_type = column .type .python_type
14301424 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"
14351426 else :
14361427 python_type_name = python_type .__name__
14371428
0 commit comments