Version: do not access private attributes, fixes #9263

DeprecationWarning: Version._version is private and will be removed soon
This commit is contained in:
Thomas Waldmann 2026-01-22 15:57:55 +01:00
parent 4827521f9c
commit 3bddee22d4
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -3,8 +3,7 @@ from packaging.version import parse as parse_version
from ._version import version as __version__
_v = parse_version(__version__)
__version_tuple__ = _v._version.release # type: ignore
__version_tuple__ = parse_version(__version__).release
# assert that all semver components are integers
# this is mainly to show errors when people repackage poorly