Prevent None version in __init__.py (#20453)

* prevent None version

* Fix comparison of __version__ to None
This commit is contained in:
matt-o-how
2026-02-04 10:13:19 -08:00
committed by GitHub
parent 2e4a9be8ae
commit 235340a24b
+3
View File
@@ -10,6 +10,9 @@ try:
except (PackageNotFoundError, KeyError):
__version__ = "unknown"
if __version__ is None:
__version__ = "unknown"
try:
assert False
except AssertionError: