From 3bddee22d486c817f99ffee256308f5cbfdc223a Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 22 Jan 2026 15:57:55 +0100 Subject: [PATCH] Version: do not access private attributes, fixes #9263 DeprecationWarning: Version._version is private and will be removed soon --- src/borg/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/borg/__init__.py b/src/borg/__init__.py index 58d49af03a..d46c07c50e 100644 --- a/src/borg/__init__.py +++ b/src/borg/__init__.py @@ -3,8 +3,7 @@ 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