Skip to content

Commit 6da73a7

Browse files
committed
Fix snappy version
1 parent 0be6fd3 commit 6da73a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/compat/_optional.py

+4
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ def get_version(module: types.ModuleType) -> str:
7272
if module.__name__ == "brotli":
7373
# brotli doesn't contain attributes to confirm it's version
7474
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 ""
7579
raise ImportError(f"Can't determine version for {module.__name__}")
7680
if module.__name__ == "psycopg2":
7781
# psycopg2 appends " (dt dec pq3 ext lo64)" to it's version

0 commit comments

Comments
 (0)