Is the C extension installed?
()
| 1065 | |
| 1066 | |
| 1067 | def has_c() -> bool: |
| 1068 | """Is the C extension installed?""" |
| 1069 | try: |
| 1070 | from pymongo import _cmessage # type: ignore[attr-defined] # noqa: F401 |
| 1071 | |
| 1072 | return True |
| 1073 | except ImportError: |
| 1074 | return False |
| 1075 | |
| 1076 | |
| 1077 | class Version(tuple[int, ...]): |
no outgoing calls