MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / has_compiled_ext

Function has_compiled_ext

lib/sqlalchemy/util/langhelpers.py:2280–2291  ·  view source on GitHub ↗
(raise_=False)

Source from the content-addressed store, hash-verified

2278
2279
2280def has_compiled_ext(raise_=False):
2281 from ._has_cython import HAS_CYEXTENSION
2282
2283 if HAS_CYEXTENSION:
2284 return True
2285 elif raise_:
2286 raise ImportError(
2287 "cython extensions were expected to be installed, "
2288 "but are not present"
2289 )
2290 else:
2291 return False
2292
2293
2294def load_uncompiled_module(module: _M) -> _M:

Callers 3

__ensure_cextFunction · 0.90
_log_sqlalchemy_infoFunction · 0.90
platform_keyMethod · 0.85

Calls

no outgoing calls

Tested by 1

_log_sqlalchemy_infoFunction · 0.72