Skip to content

Commit

Permalink
fix: show deprecation warnings from the Python wrapper by default (#7986
Browse files Browse the repository at this point in the history
)
  • Loading branch information
yonipeleg33 authored Jul 11, 2024
1 parent 713668e commit 88724a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clients/python-wrapper/lakefs/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from __future__ import annotations

import sys
import uuid
import warnings
from contextlib import contextmanager
Expand All @@ -23,6 +24,9 @@
TransactionException
)

# Unless stated otherwise by passing `-W <something>` to Python, we display `DeprecationWarning`s by default.
if not sys.warnoptions:
warnings.simplefilter('always', DeprecationWarning)

class _BaseBranch(Reference):

Expand Down

0 comments on commit 88724a8

Please sign in to comment.