(
cls, init: Callable[..., Any], bind: Union[Engine, Connection]
)
| 238 | |
| 239 | @classmethod |
| 240 | def _construct( |
| 241 | cls, init: Callable[..., Any], bind: Union[Engine, Connection] |
| 242 | ) -> Inspector: |
| 243 | if hasattr(bind.dialect, "inspector"): |
| 244 | cls = bind.dialect.inspector |
| 245 | |
| 246 | self = cls.__new__(cls) |
| 247 | init(self, bind) |
| 248 | return self |
| 249 | |
| 250 | def _init_legacy(self, bind: Union[Engine, Connection]) -> None: |
| 251 | if hasattr(bind, "exec_driver_sql"): |
no test coverage detected