We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0be6fd3 commit 6da73a7Copy full SHA for 6da73a7
pandas/compat/_optional.py
@@ -72,6 +72,10 @@ def get_version(module: types.ModuleType) -> str:
72
if module.__name__ == "brotli":
73
# brotli doesn't contain attributes to confirm it's version
74
return ""
75
+ if module.__name__ == "snappy":
76
+ # snappy doesn't contain attributes to confirm it's version
77
+ # See https://github.com/andrix/python-snappy/pull/119
78
+ return ""
79
raise ImportError(f"Can't determine version for {module.__name__}")
80
if module.__name__ == "psycopg2":
81
# psycopg2 appends " (dt dec pq3 ext lo64)" to it's version
0 commit comments