Skip to content

Conversation

@SiverJohn
Copy link

@SiverJohn SiverJohn commented Aug 27, 2025

Deprecated warnings are automatically ignored unless executed in main. While we could use stacklevel=4 to allow for DeprecationWarning to hit for I presume the majority of people (just running conn = btrdb.connect(...) in a notebook it does fail if it is being called from another imported file. So we are instead using FutureWarning (which is the correct warning to use to show deprecations to the user). Though kept stacklevel 4 so it will always show the warning on conn = btrdb.connect(...)

@SiverJohn SiverJohn requested a review from justinGilmer August 27, 2025 17:10
@SiverJohn SiverJohn merged commit 4cf9811 into master Aug 27, 2025
15 checks passed
@SiverJohn SiverJohn deleted the add-future-warning branch August 27, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants