diff --git a/clients/python-wrapper/lakefs/branch.py b/clients/python-wrapper/lakefs/branch.py index f4df0bd8363..280901870a1 100644 --- a/clients/python-wrapper/lakefs/branch.py +++ b/clients/python-wrapper/lakefs/branch.py @@ -4,6 +4,7 @@ from __future__ import annotations +import sys import uuid import warnings from contextlib import contextmanager @@ -23,6 +24,9 @@ TransactionException ) +# Unless stated otherwise by passing `-W ` to Python, we display `DeprecationWarning`s by default. +if not sys.warnoptions: + warnings.simplefilter('always', DeprecationWarning) class _BaseBranch(Reference):