File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33import inspect
4+ import logging
45import re
56import sys
67from abc import ABCMeta , abstractmethod
6566 uses_default_name ,
6667)
6768
69+ _logger = logging .getLogger (__name__ )
70+
6871_re_boolean_check_constraint = re .compile (r"(?:.*?\.)?(.*?) IN \(0, 1\)" )
6972_re_column_name = re .compile (r'(?:(["`]?).*\1\.)?(["`]?)(.*)\2' )
7073_re_enum_check_constraint = re .compile (r"(?:.*?\.)?(.*?) IN \((.+)\)" )
@@ -1246,6 +1249,9 @@ def render_python_type(column_type: TypeEngine[Any]) -> str:
12461249 try :
12471250 python_type = column_type .python_type
12481251 except NotImplementedError :
1252+ _logger .warning (
1253+ f"Unable to determine python type for { column_type } , falling back to typing.Any"
1254+ )
12491255 self .add_literal_import ("typing" , "Any" )
12501256 python_type = Any
12511257
You can’t perform that action at this time.
0 commit comments