Skip to content

Commit

Permalink
RF: warn_on_args_to_kwargs decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
WassCodeur committed Jun 26, 2024
1 parent 2fb6c7a commit 1f34348
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions fury/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import platform
import re
import sys
from typing import Optional
from warnings import warn

from packaging import version
Expand Down Expand Up @@ -54,8 +53,8 @@ def doctest_skip_parser(func):


def warn_on_args_to_kwargs(
from_version: Optional[str] = "0.1.0",
until_version: Optional[str] = "0.11.0",
from_version="0.1.0",
until_version="0.11.0",
):
"""Decorator to enforce keyword-only arguments.
Expand All @@ -65,9 +64,9 @@ def warn_on_args_to_kwargs(
Parameters
----------
from_version: optional, str
from_version: str, optional
The version of fury from which the function was supported.
until_version: optional, str
until_version: str, optional
The version of fury until which the function was supported.
Returns
Expand Down

0 comments on commit 1f34348

Please sign in to comment.