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 f379420e7c
commit 000a5818ef
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

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