File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 77PACKAGE = "Parcels"
88
99
10- def deprecated (msg : str = "" , stacklevel : int = 2 ) -> Callable :
10+ def deprecated (msg : str = "" ) -> Callable :
1111 """Decorator marking a function as being deprecated
1212
1313 Parameters
@@ -37,7 +37,7 @@ def wrapper(*args, **kwargs):
3737 f"`{ func .__qualname__ } ` is deprecated and will be removed in a future release of { PACKAGE } .{ msg } "
3838 )
3939
40- warnings .warn (msg_formatted , category = DeprecationWarning , stacklevel = stacklevel )
40+ warnings .warn (msg_formatted , category = DeprecationWarning , stacklevel = 3 )
4141 return func (* args , ** kwargs )
4242
4343 return wrapper
@@ -50,5 +50,4 @@ def deprecated_made_private(func: Callable) -> Callable:
5050 "It has moved to the internal API as it is not expected to be directly used by "
5151 "the end-user. If you feel that you use this code directly in your scripts, please "
5252 "comment on our tracking issue at <>." , # TODO: Add tracking issue
53- stacklevel = 3 ,
5453 )(func )
You can’t perform that action at this time.
0 commit comments