forked from fury-gl/fury
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NF: Add keyword_only decorator to enforce keyword-only arguments (fur…
…y-gl#888) * parent 4baa99d author WassCodeur <[email protected]> 1716302141 +0000 committer WassCodeur <[email protected]> 1717549770 +0000 NF: Add keyword_only decorator to enforce keyword-only arguments RF: Refactor keyword-only code and Add keyword-only arguments to functions TEST: Add test for keyword_only" decorator Refactor code to use keyword-only arguments in several functions NF: remove some doctest and add a short comment on line 111 to explain what the loop does in fury/decorators.py RF: Refactor keyword-only code and Add keyword-only arguments to functions Refactor code to use keyword-only arguments in several functions * NF: Add keyword_only decorator to enforce keyword-only arguments * NF: Add keyword_only decorator to enforce keyword-only arguments * RF: Refactor keyword-only code and Add keyword-only arguments to functions * TEST: Add test for keyword_only" decorator * Refactor interactor.py and molecular.py * RF: Rename and update decorator for version checks - Renamed `keyword-only` decorator to `warn_on_args_to_kwargs` for greater clarity. - Updated `warn_on_args_to_kwargs` to include version parameters `from_version` and `until_version`. - Added logic to raise a RuntimeError if the current version of FURY_VERSION is greater than `until_version`. - Moved `__version__` definition to a new `fury/version.py` module to avoid circular import problems. - Updated all functions using the decorator to reflect the new name and parameters. - Adjusted import declarations and ensured compatibility across the code base. * RF: Refactor the code by removing version constraints in the call to the warn_on_args_to_kwargs decorator * RF: Refactor warn_on_args_to_kwargs code and Add warn_on_args_to_kwargs arguments to functions in window.py and actor.py * RF: update the version checks in the decorator: warn_on_args_to_kwargs and update the unittest * RF: warn_on_args_to_kwargs decorator parent 4baa99d author WassCodeur <[email protected]> 1716302141 +0000 committer WassCodeur <[email protected]> 1717549770 +0000 NF: Add keyword_only decorator to enforce keyword-only arguments RF: Refactor keyword-only code and Add keyword-only arguments to functions TEST: Add test for keyword_only" decorator Refactor code to use keyword-only arguments in several functions NF: remove some doctest and add a short comment on line 111 to explain what the loop does in fury/decorators.py RF: Refactor keyword-only code and Add keyword-only arguments to functions Refactor code to use keyword-only arguments in several functions NF: Add keyword_only decorator to enforce keyword-only arguments RF: Refactor keyword-only code and Add keyword-only arguments to functions Refactor interactor.py and molecular.py RF: Rename and update decorator for version checks - Renamed `keyword-only` decorator to `warn_on_args_to_kwargs` for greater clarity. - Updated `warn_on_args_to_kwargs` to include version parameters `from_version` and `until_version`. - Added logic to raise a RuntimeError if the current version of FURY_VERSION is greater than `until_version`. - Moved `__version__` definition to a new `fury/version.py` module to avoid circular import problems. - Updated all functions using the decorator to reflect the new name and parameters. - Adjusted import declarations and ensured compatibility across the code base. RF: update the version checks in the decorator: warn_on_args_to_kwargs and update the unittest RF: warn_on_args_to_kwargs decorator
- Loading branch information
1 parent
7651a24
commit bea3c6c
Showing
42 changed files
with
1,393 additions
and
463 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.