Skip to content

DeprecationWarning: Version._version is private and will be removed soon #9263

@nijel

Description

@nijel

With packaging==26.0 borg emits a warning:

 .venv/lib/python3.14/site-packages/borg/__init__.py:9: in <module>
    __version_tuple__ = _v._version.release
                        ^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (<Version('1.4.3')>,), kwargs = {}

    @functools.wraps(arg)
    def wrapper(*args, **kwargs):
>       _wm.warn(msg, category=category, stacklevel=stacklevel + 1)
E       DeprecationWarning: Version._version is private and will be removed soon

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions