Skip to content

Commit

Permalink
Re-add deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Mar 15, 2024
1 parent 263225c commit 0f5183e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions py-polars/polars/expr/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -9622,6 +9622,9 @@ def shift_and_fill(
"""
return self.shift(n, fill_value=fill_value)

@deprecate_function(
"Use `polars.plugins.register_plugin_function` instead.", version="0.20.16"
)
def register_plugin(
self,
*,
Expand Down
10 changes: 10 additions & 0 deletions py-polars/polars/utils/udfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@
import os
from typing import Any

from polars._utils.deprecation import deprecate_function

__all__ = ["_get_shared_lib_location"]


@deprecate_function(
"It will be removed in the next breaking release."
" The new `register_plugin_function` function has this functionality built in."
" Use `from polars.plugins import register_plugin_function` to import that function."
" Check the user guide for the currently-recommended way to register a plugin:"
" https://docs.pola.rs/user-guide/expressions/plugins",
version="0.20.16",
)
def _get_shared_lib_location(main_file: Any) -> str:
"""
Get the location of the dynamic library file.
Expand Down

0 comments on commit 0f5183e

Please sign in to comment.